/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-ExtraBold.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: #fdfdfc;
  color: #000000;
  /* min-height: 100vh; */
}

h2 i {
  margin-right: 10px;
}

h3 i {
  margin-right: 10px;
}

/* =====================================================
   Auth Pages (login / register / forgot / reset)
===================================================== */
.auth-wrapper {
  padding: 60px 48px;
  border-radius: 16px;
  background: #ffffff;
  margin: auto;
  max-width: 520px;   /* ✅ 限制整体宽度 */
  width: 100%;
  opacity: 0;          /* 页面不闪 */
  transition: opacity 0.5s ease;
}

.auth-wrapper.login,
.auth-wrapper.forgot { width: 480px; }

.auth-wrapper.register { width: 520px; }

.auth-wrapper.reset { width: 500px; }

/* Logo */
.logo {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.logo span {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 900;
  color: #f59e0b;
}

.subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 42px;
}

/* Form */
.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
  pointer-events: none;
}

input {
  width: 100%;
  height: 60px;
  padding: 0 20px 0 50px;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid #000000;
  background: #ffffff;
  transition: all 0.2s;
}

input::placeholder { color: #9ca3af; }

input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245,158,11,0.2);
}

/* Buttons (shared) */
.btn {
  height: 60px;
  border-radius: 16px;
  border: none;
  background: #fbbf24;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { background: #ffe390; }
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid #f59e0b;   /* 主橘色 */
  outline-offset: 3px;         /* 和按钮留点呼吸感 */
}

/* 只限制 auth 里的 input / button */
.auth-wrapper input {
  width: 100%;
  max-width: 420px;   /* ✅ 不要拉满卡片 */
  margin: 0 auto;
  display: block;
}

/* Auth button full width */
.auth-wrapper .btn {
  width: 100%;
  max-width: 420px;   /* ✅ 按钮不要贴边 */
  margin: 0 auto;
  display: block;
}

/* Messages */
.error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 24px;
  display: none;
  text-align: center;
}

.success {
  background: #ecfdf5;
  color: #047857;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 24px;
  display: none;
  text-align: center;
}

/* Footer links */
.links {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
}

.links a {
  color: #000000;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
}

/* Hint */
.hint {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 22px;
  text-align: center;
}

/* 外层 wrapper：居中整个组合 */
.remember-me-wrapper {
  display: flex;
  justify-content: center;  /* 水平居中 */
  margin-bottom: 16px;
}

/* 内部 checkbox + label */
.remember-me {
  display: flex;
  align-items: center;      /* 垂直居中 */
  gap: 6px;                 /* checkbox 和文字间距 */
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.remember-me label {
  margin: 0;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

/* =====================================================
   Dashboard
===================================================== */
/* 全屏 loading 层 */
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;   /* 白色背景 */
  z-index: 9999;         /* 高于其他元素 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 转圈动画 */
.spinner {
  width: 60px;
  height: 60px;
  /* border: 6px solid #f3f3f3;
  border-top: 6px solid #f59e0b;
  border-radius: 50%; */
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.navbar {
  height: 80px;
  background: #ffffff;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.navbar .logo {
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.navbar .user-menu {
  font-size: 16px;
  font-weight: 700;
}

.navbar .user-menu i { margin-left: 8px; }

/* =======================
   User Dropdown 样式
   ======================= */
.user-menu {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.user-menu i {
  margin-left: 8px;
}

/* Dropdown 容器 */
.user-dropdown {
  display: none;           /* 默认隐藏 */
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #fff;
  border: 2px solid #000;  /* 黑边 */
  border-radius: 12px;
  min-width: 160px;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Dropdown 列表 */
.user-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.user-dropdown ul li {
  padding: 12px 20px;
  font-weight: 600;
  font-size: 16px;
  color: #111;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;           /* 关键：用 flex 排版 */
  align-items: center;     /* 垂直居中对齐 */
  gap: 8px;                /* 图标和文字之间的间隔 */
}

.user-dropdown ul li:hover {
  background: #fef3e0; /* hover 效果和 sidebar 一致 */
}

.user-dropdown .divider {
  background: #eee;
}

.user-dropdown li {
  padding: 8px 14px;
  cursor: pointer;

  display: flex;
  align-items: center;

  font-size: 0.95em;
}

.user-dropdown li i {
  flex: 0 0 20px;      /* 固定 20px 宽度，所有图标占同样空间 */
  display: inline-block;
  text-align: center;   /* 图标在固定宽度里居中 */
  margin-right: 8px;    /* 图标和文字间距 */
}

/* Layout */
.container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: calc(100vh - 80px); /* navbar 高度 */
  opacity: 0;          /* 页面不闪 */
  transition: opacity 0.5s ease;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 2px solid #000;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  transition: transform 0.3s ease;
  z-index: 999;
}

.sidebar ul { list-style: none; }

.sidebar ul li {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.2s;
  position: relative;
}

.sidebar ul li i {
  width: 28px;
  margin-right: 12px;
  text-align: center;
}

.sidebar ul li:hover {
  background: #fef3e0;
  /* font-weight: 600; */
}

.sidebar ul li.active {
  background: #fbbf24;
  color: #000;
  font-weight: 700;
}

.sidebar ul li.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  background: #f59e0b;
}

#sidebarOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0,0,0,0.3); */
  z-index: 998;   /* 比 sidebar 小 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* 显示时 */
#sidebarOverlay.show {
  opacity: 1;
  visibility: visible;
}

/* 你的 sidebar */
#sidebar {
  z-index: 999;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;              /* 新增 */
  flex-direction: column;     /* 新增 */
}

.main-content h1 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 24px;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 20px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card .number {
  font-size: 28px;
  color: #f59e0b;
  margin-top: 8px;
}

.cards {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.card {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  position: relative;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.3); */
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-btn {
  position: relative;
  background: #222;
  border: 5px solid #80ff86;
  padding: 8px 12px;
  border-radius: 12px;
  color: #fef3e0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.card-btn:hover {
  /* background: #45a049; */
  background: #222;
  color: #fef3e0;;
}

/* Tooltip */
.card-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%; /* 显示在按钮上方 */
  left: 50%;
  transform: translateX(-50%);
  background: #45a049;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: pre-line;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  width: 200px;
  text-align: center;
  z-index: 10;
}

.card-btn:hover::after {
  opacity: 1;
}

.main-content .btn {
  width: auto;              /* ✅ 还原内容按钮 */
  padding: 14px 28px;       /* ✅ 恢复左右 padding */
  margin-bottom: 20px;      /* ✅ 和表格拉开距离 */
  margin-top: 10px;      /* ✅ 和表格拉开距离 */
}

/* =====================================================
   DataTables
===================================================== */
table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  background: #ffffff !important;
  margin-top: 20px;
}

table.dataTable thead th {
  border-bottom: 3px solid #000 !important;
  background: #ffffff !important;
  font-weight: 700;
  padding: 20px;
}

table.dataTable tbody td {
  border-bottom: 2px solid #000;
  background: #ffffff !important;
  padding: 16px;
}

table.dataTable tbody tr:hover {
  background: #fff4e0 !important;
}

.dataTables_filter label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* DataTable controls */
.dataTables_length select,
.dataTables_filter input {
  border: 2px solid #000 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  outline: none !important;
  font-weight: 500 !important;
  width: auto !important;   /* ✅ 不再 100% */
  min-width: 220px;
  height: auto !important;      /* ✅ 还原浏览器默认高度 */
  padding: 6px 10px !important; /* ✅ DataTable 合理内边距 */
  font-size: 14px !important;
  line-height: normal !important;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  border-radius: 12px !important;
  background: #fbbf24 !important;
  color: #000 !important;
  padding: 8px 14px !important;
  margin: 2px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #ffe390 !important;
  color: #000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #fbbf24 !important;
  color: #000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #ffe390 !important;
  color: #000 !important;
}

/* Previous / Next */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  background: transparent !important;
  color: #f59e0b !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
  background: transparent !important;
  color: #f59e0b !important;
}

.dataTables_wrapper {
  margin-top: 20px;   /* ✅ 表格整体下移 */
}

/* =====================================================
   Responsive
===================================================== */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100% - 80px);
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.show { transform: translateX(0); }

  .container { flex-direction: column; }
  .main-content { padding: 16px; }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: left !important;
    margin-bottom: 10px;
  }

  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    margin: 0 !important;
  }
}

/* Section切换控制 */
.section { display:none; }
.section.active { display:block; }
/* Notification badge */
.notifications { float:right; }
.notifications span { margin-left: 10px; cursor:pointer; background:#354f52; color:#000; padding:3px 8px; border-radius:5px; font-size:0.85em;}
iframe { width:100%; height:500px; border:1px solid #ccc; }

/* 文件输入美化 */
.file-input-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  max-width: 400px; /* 限制宽度，不撑满屏幕 */
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left:0; top:0;
  width:100%; height:100%;
  opacity:0;
  cursor:pointer;
}

.file-input-wrapper button.btn {
  width: auto; /* 按钮固定宽度，漂亮 */
}

.file-input-wrapper .file-name {
  display: block;      /* 强制换行 */
  width: 100%;         /* 占满 wrapper 宽度 */
  margin-left: 0;      /* 去掉横向间距 */
  margin-top: 6px;     /* 距离按钮一点点 */
  font-size: 0.9em;
  color: #555;
  word-break: break-all;
}

/* Brand input调整宽度 */
.input-brand {
  max-width: 300px;
  display:inline-block;
  margin-right: 10px;
}

/* ===== Section header spacing (LOOSER) ===== */

.section-header {
  margin-bottom: 28px;   /* 原来 20 → 28 */
}

.section-header.small {
  margin-top: 44px;      /* 原来 32 → 44 */
  margin-bottom: 22px;   /* 原来 16 → 22 */
}

.section-header h2 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

.section h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  margin-top: 20px;
}

/* Subtitle breathing space */
.section-subtitle {
  margin-top: 10px;      /* 原来 6 → 10 */
  margin-bottom: 10px;      /* 原来 6 → 10 */
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}

/* ===== Divider (instead of hr) ===== */

.section-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 44px 0;        /* 原来 32 → 44 */
}

/* ===== Upload form spacing ===== */

.upload-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;             /* 原来 16 → 20 */
  margin-bottom: 16px;  /* 原来 8 → 16 */
}

.section-divider.with-icon {
  position: relative;
  text-align: center;
  margin: 48px 0;          /* 比之前再松一点 */
}

.section-divider.with-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-50%);
}

.section-divider.with-icon i {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: #1f1f1f;     /* 跟 main-content 背景一致 */
  color: #888;
  font-size: 14px;
}

/* ===== Step Divider ===== */

.step-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
}

/* the line */
.step-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e5e7eb;          /* 浅灰，肯定看得见 */
  transform: translateY(-50%);
}

/* circle */
.step-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;          /* 白底 */
  border: 1px solid #e5e7eb;    /* 细灰边 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* arrow */
.step-icon i {
  font-size: 14px;
  color: #9ca3af;               /* 中性灰 */
}

/* ===== Queue Progress ===== */

.queue-progress {
  /* font-size: 13px; */
  color: #6b7280;
}

.queue-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.status-label {
  font-weight: 600;
  color: #374151;
}

.queue-info {
  /* font-size: 12px; */
  color: #9ca3af;
}

/* dots */

.queue-dots {
  display: flex;
  gap: 6px;
}

.queue-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
}

.queue-dots .dot.done {
  background: #9ca3af;
}

.queue-dots .dot.current {
  background: #4b5563;
}

.tag-classifier {
  max-width: 960px;
  margin: 40px auto;
  font-family: 'Inter', system-ui;
  color: #000;
}

.columns {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.column {
  flex: 1;
  background: #fff;
  border: 2px solid #000;
  border-radius: 16px;
  padding: 20px;
}

.column-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.acceptable .column-title {
  color: #15803d;
}

.not-acceptable .column-title {
  color: #b91c1c;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  transition: none;
}

.tag.selected {
  border-color: #f59e0b;
  background: #fef3e0;
}

.menu {
  max-width: 960px;
  margin: 40px auto;
}

.hidden {
  display: none;
}

#context .tag {
  display: inline-block;
  margin-right: 8px;
  margin-top: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 2px solid #000;
  background: #fff;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
  .columns {
    flex-direction: column;
  }
}

/* 整行布局 */
.dashboard-row {
  display: flex;
  justify-content: space-between; /* 左标题，右指标 */
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Dashboard 标题 */
.dashboard-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  flex-shrink: 0;
}

/* mini-cards 容器，右对齐 */
.mini-cards {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-left: auto; /* 右对齐 */
}

/* 每个指标卡 */
.interactive-mini-card {
  background: #fff;
  border: 2px solid transparent; /* 初始无边框 */
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  min-width: 90px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  cursor: default; /* 初始不显示点击感 */
  transition: border-color 0.2s;
}

/* hover 显示边框 + cursor */
.interactive-mini-card:hover {
  border-color: #f59e0b;
  cursor: pointer;
}

/* 标题和数字 */
.interactive-mini-card .mini-card-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.interactive-mini-card .mini-number {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

/* Tooltip */
.interactive-mini-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #45a049;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  width: max-content;
  max-width: 220px;
  text-align: center;
  z-index: 10;
}

/* hover 显示 tooltip */
.interactive-mini-card:hover::after {
  opacity: 1;
}

/* 响应式，小屏幕堆叠 */
@media (max-width: 992px) {
  .dashboard-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 50px;
  }
  .mini-cards {
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 0;
  }
}

/* 通用紧凑按钮 */
.dt-btn {
  font-size: 16px;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.2;
  min-width: auto;
  margin-bottom: 5px;
}

/* Success 绿色 */
.dt-btn.btn-success {
  background-color: #fbbf24; /* Tailwind green-600 */
  color: #000;
  border: 1px solid #fbbf24;
  cursor: pointer;
}

.dt-btn.btn-success:hover {
  background-color: #ffe390; /* hover 稍深绿 */
  border-color: #ffe390;
}

/* Disable 灰色，不能点 */
.dt-btn.btn-disable {
  background-color: #d1d5db; /* Tailwind gray-300 */
  color: #6b7280; /* gray-500 */
  border: 1px solid #d1d5db;
  cursor: not-allowed;
  pointer-events: none; /* 禁止点击 */
}

.dt-btn.btn-disable:hover {
  background-color: #d1d5db;
  border-color: #d1d5db;
}

.check-icon {
  color: #22c55e; /* green */
}

.b-bold {
  color: red;
}

/* 举例 sidebar 右边的 border */
.sidebar {
  position: relative;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;           /* 边界位置 */
  width: 6px;         /* 鱼骨线厚度 */
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #f59e0b 0px,
    #f59e0b 6px,
    #fff 6px,
    #fff 12px
  );
  pointer-events: none; /* 不挡交互 */
}

.navbar {
  position: relative;
  z-index: 1; /* 保证伪元素在内容上面 */
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 10; /* 保证在最上层 */
  background: repeating-linear-gradient(
    -45deg,
    #f59e0b 0,
    #f59e0b 6px,
    #fff 6px,
    #fff 12px
  );
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    height: 100vh;  /* 保证移动端从顶到底 */
  }
}

.annotate-btn {
  padding: 4px 10px;
  margin: 0 2px;
  border-radius: 14px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.annotate-btn.yes.active {
  background: #2ecc71;
  color: #fff;
  border-color: #2ecc71;
}

.annotate-btn.no.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

.site-footer {
  margin-top: auto;   /* 核心关键 */
  text-align: center;
  padding: 25px 20px;
  /* background: #f8f9fa; */
  border-top: 1px solid #e5e5e5;
  font-size: 0.9rem;
  color: #666;
}

.credit-text {
  display: block;
  margin-top: 8px;
}

.ai-highlight {
  font-weight: 600;
  color: #ff8c00;
}

.logo-slogan {
  font-size: 14px;
  font-weight: 100 !important;
  opacity: 1;
  margin-top: 4px;
  text-align: left;      /* 防止继承居中 */
  color: #aaa;
}

.tooltip-wizard {
  position: absolute;
  background: rgba(51,51,51,0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  max-width: 280px;
  font-size: 14px;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tooltip-wizard strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.tooltip-wizard button {
  background: #fff;
  color: #333;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.tooltip-wizard button:hover {
  background: #eee;
}
