.workbench-body {
  min-height:100vh;
  background:
    radial-gradient(circle at 80% -10%,rgba(71,130,199,.22),transparent 33%),
    radial-gradient(circle at 10% 25%,rgba(62,104,158,.12),transparent 30%),
    #07101f;
}

.wb-topbar {
  position:sticky;
  z-index:40;
  top:0;
  min-height:72px;
  display:flex;
  align-items:center;
  gap:36px;
  padding:0 max(24px,5vw);
  border-bottom:1px solid rgba(255,255,255,.09);
  background:rgba(7,16,31,.83);
  backdrop-filter:blur(18px);
}

.wb-topbar .brand {
  margin-right:auto;
}

.wb-topbar nav {
  display:flex;
  align-items:center;
  gap:25px;
  color:#9eafc2;
  font-size:13px;
}

.wb-topbar nav a {
  padding:25px 0 22px;
  border-bottom:2px solid transparent;
}

.wb-topbar nav a:hover,
.wb-topbar nav a.active {
  color:#f2f7ff;
  border-bottom-color:#a9d3ff;
}

.preview-badge {
  padding:6px 9px;
  border:1px solid rgba(151,202,255,.2);
  border-radius:999px;
  color:#acd1f4;
  background:rgba(96,160,224,.08);
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
}

.wb-shell {
  width:min(1180px,90vw);
  margin:auto;
  padding:58px 0 110px;
}

.wb-hero {
  min-height:260px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
  padding:45px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:28px;
  background:
    radial-gradient(circle at 88% 10%,rgba(108,173,236,.18),transparent 35%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow:0 30px 80px rgba(0,0,0,.2);
}

.wb-hero h1 {
  margin:0;
  font-size:clamp(40px,5vw,65px);
  letter-spacing:-.05em;
}

.wb-hero > div:first-child > p:last-child {
  max-width:620px;
  margin:18px 0 0;
  color:#9dafc3;
  line-height:1.8;
}

.wb-status {
  min-width:265px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:16px 18px;
  border:1px solid rgba(103,207,146,.16);
  border-radius:16px;
  background:rgba(57,145,93,.07);
}

.status-dot {
  width:9px;
  height:9px;
  flex:0 0 auto;
  border-radius:50%;
  background:#66dc98;
  box-shadow:0 0 14px rgba(102,220,152,.7);
}

.wb-status div {
  display:flex;
  flex-direction:column;
}

.wb-status strong {
  font-size:13px;
}

.wb-status small {
  margin-top:5px;
  color:#91a7b8;
  font-size:11px;
}

.wb-section {
  margin-top:72px;
}

.wb-section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:25px;
}

.wb-section-head h2 {
  margin:0;
  font-size:30px;
}

.wb-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;
}

.wb-card {
  min-height:230px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:28px;
  color:inherit;
  text-align:left;
  border:1px solid rgba(255,255,255,.1);
  border-radius:22px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  cursor:pointer;
  transition:.22s ease;
}

.wb-card:hover {
  border-color:rgba(143,199,255,.28);
  transform:translateY(-3px);
  background:
    linear-gradient(145deg,rgba(113,173,235,.105),rgba(255,255,255,.03));
  box-shadow:0 22px 55px rgba(0,0,0,.18);
}

.wb-card.featured {
  background:
    radial-gradient(circle at 90% 5%,rgba(95,165,235,.18),transparent 40%),
    linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.026));
}

.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.card-code {
  color:#b6cbe1;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em;
}

.card-state {
  padding:5px 8px;
  border-radius:999px;
  font-size:9px;
  letter-spacing:.06em;
}

.card-state.ready {
  color:#bce7cd;
  background:rgba(70,190,120,.1);
}

.card-state.building {
  color:#bdd9f3;
  background:rgba(74,151,220,.12);
}

.card-state.planned {
  color:#aeb9c5;
  background:rgba(255,255,255,.06);
}

.admin-state {
  color:#efd59e;
  background:rgba(196,145,54,.12);
}

.wb-card h3 {
  margin:24px 0 10px;
  font-size:24px;
}

.wb-card p {
  margin:0;
  max-width:500px;
  color:#96a9be;
  font-size:13px;
  line-height:1.75;
}

.card-enter {
  margin-top:28px;
  color:#bbd6f0;
  font-size:12px;
}

.secondary-grid {
  grid-template-columns:repeat(3,1fr);
}

.small-card {
  min-height:210px;
}

.small-card.admin {
  border-color:rgba(213,177,102,.15);
}

.roadmap {
  margin-top:80px;
  padding:38px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:rgba(255,255,255,.025);
}

.roadmap h2 {
  margin:0;
  font-size:30px;
}

.roadmap-line {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:30px;
}

.roadmap-item {
  position:relative;
  min-height:110px;
  padding:0 20px 0 0;
  display:flex;
  flex-direction:column;
}

.roadmap-item::before {
  content:"";
  position:absolute;
  top:10px;
  left:28px;
  right:0;
  height:1px;
  background:rgba(255,255,255,.1);
}

.roadmap-item:last-child::before {
  display:none;
}

.roadmap-item > span {
  position:relative;
  z-index:2;
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:50%;
  color:#7d91a7;
  background:#07101f;
  font-size:8px;
}

.roadmap-item.done > span {
  color:#9ee1bc;
  border-color:rgba(104,216,151,.4);
}

.roadmap-item.current > span {
  color:#07101f;
  background:#b8dafa;
  border-color:#b8dafa;
}

.roadmap-item strong {
  margin-top:16px;
  font-size:13px;
}

.roadmap-item small {
  margin-top:6px;
  color:#75889d;
  font-size:10px;
}

@media(max-width:850px) {
  .wb-topbar {
    padding:0 18px;
  }

  .wb-topbar nav {
    display:none;
  }

  .preview-badge {
    margin-left:auto;
  }

  .wb-shell {
    padding-top:28px;
  }

  .wb-hero {
    min-height:300px;
    padding:28px;
    align-items:flex-start;
    flex-direction:column;
  }

  .wb-status {
    width:100%;
    min-width:0;
  }

  .wb-grid,
  .secondary-grid {
    grid-template-columns:1fr;
  }

  .roadmap {
    padding:28px 23px;
  }

  .roadmap-line {
    grid-template-columns:1fr;
    gap:20px;
  }

  .roadmap-item {
    min-height:auto;
    padding-left:37px;
  }

  .roadmap-item::before {
    top:23px;
    bottom:-20px;
    left:11px;
    width:1px;
    height:auto;
  }

  .roadmap-item > span {
    position:absolute;
    left:0;
    top:0;
  }

  .roadmap-item strong {
    margin-top:2px;
  }
}

/* =========================================================
   V1 Compact Dashboard
   工作台目标：主要功能一屏可见，减少展示型留白
   ========================================================= */

.wb-shell {
  width:min(1320px,94vw);
  padding:30px 0 70px;
}

/* 顶部介绍由大型 Hero 改为紧凑状态栏 */
.wb-hero {
  min-height:135px;
  align-items:center;
  padding:26px 32px;
  border-radius:22px;
}

.wb-hero h1 {
  font-size:clamp(30px,3.4vw,44px);
}

.wb-hero > div:first-child > p:last-child {
  margin-top:9px;
  line-height:1.55;
  font-size:13px;
}

.wb-status {
  min-width:240px;
  padding:12px 15px;
}

.wb-status strong {
  font-size:12px;
}

.wb-status small {
  margin-top:3px;
  font-size:10px;
}

/* 模块之间不要隔太远 */
.wb-section {
  margin-top:34px;
}

.wb-section-head {
  margin-bottom:14px;
}

.wb-section-head .eyebrow {
  margin-bottom:7px;
}

.wb-section-head h2 {
  font-size:23px;
}

/* PC：四个模块一排 */
.wb-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

/* 成员区域也采用紧凑布局 */
.secondary-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

/* 卡片明显缩短 */
.wb-card {
  min-height:158px;
  padding:19px 20px;
  border-radius:18px;
}

.small-card {
  min-height:150px;
}

.wb-card h3 {
  margin:14px 0 7px;
  font-size:19px;
}

.wb-card p {
  font-size:11.5px;
  line-height:1.55;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.card-enter {
  margin-top:13px;
  font-size:11px;
}

.card-code {
  font-size:10px;
}

.card-state {
  padding:4px 7px;
  font-size:8px;
}

/* 工作台不需要向普通使用者展示开发路线 */
.roadmap {
  display:none;
}

/* 更直观地区分可用功能 */
.wb-card.featured {
  border-color:rgba(119,188,255,.24);
}

.wb-card.featured::before {
  content:"";
  position:absolute;
  width:4px;
  top:18px;
  bottom:18px;
  left:0;
  border-radius:0 4px 4px 0;
  background:#82bdff;
}

.wb-card {
  position:relative;
}

/* 让鼠标经过时更容易判断当前选择 */
.wb-card:hover {
  transform:translateY(-2px);
}

/* 中等屏幕：两列 */
@media(max-width:1100px) {
  .wb-grid,
  .secondary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* 手机：单列 */
@media(max-width:650px) {
  .wb-shell {
    width:min(94vw,620px);
    padding-top:18px;
  }

  .wb-hero {
    min-height:auto;
    padding:21px;
    gap:20px;
  }

  .wb-grid,
  .secondary-grid {
    grid-template-columns:1fr;
    gap:10px;
  }

  .wb-card,
  .small-card {
    min-height:135px;
    padding:17px 18px;
  }

  .wb-section {
    margin-top:27px;
  }
}


/* =========================================================
   V1 Compact Dashboard v2
   一屏显示全部主要模块 + 增大文字
   ========================================================= */

/* 页面整体进一步压缩 */
.wb-shell {
  width:min(1380px,94vw);
  padding:18px 0 32px;
}

/* 顶栏稍微变矮，但导航文字增大 */
.wb-topbar {
  min-height:64px;
}

.wb-topbar nav {
  font-size:14px;
}

.wb-topbar nav a {
  padding:21px 0 18px;
}

/* 原来的大 Hero 压成真正的工作台标题栏 */
.wb-hero {
  min-height:96px;
  padding:18px 28px;
  border-radius:19px;
  align-items:center;
}

.wb-hero .eyebrow {
  margin-bottom:5px;
  font-size:10px;
}

.wb-hero h1 {
  font-size:34px;
  line-height:1.05;
}

.wb-hero > div:first-child > p:last-child {
  margin-top:8px;
  font-size:14px;
  line-height:1.4;
}

/* 运行状态缩成右上状态胶囊 */
.wb-status {
  min-width:245px;
  padding:10px 14px;
  border-radius:14px;
}

.wb-status strong {
  font-size:13px;
}

.wb-status small {
  font-size:11px;
}

/* 功能区域立即跟在标题下面 */
.wb-section {
  margin-top:20px;
}

.wb-section-head {
  margin-bottom:11px;
}

.wb-section-head .eyebrow {
  margin-bottom:3px;
  font-size:10px;
}

.wb-section-head h2 {
  font-size:24px;
}

/* 第一排：4个 */
.wb-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

/* 第二组不要再出现“成员与档案”大标题 */
.wb-section + .wb-section {
  margin-top:10px;
}

.wb-section + .wb-section .wb-section-head {
  display:none;
}

/* 第二排：3个 */
.secondary-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

/* 卡片更矮，但文字更大 */
.wb-card,
.small-card {
  min-height:142px;
  padding:17px 19px;
  border-radius:17px;
}

/* 主要模块标题 */
.wb-card h3 {
  margin:11px 0 6px;
  font-size:21px;
  line-height:1.15;
}

/* 描述文字明显放大 */
.wb-card p {
  font-size:13px;
  line-height:1.45;
  -webkit-line-clamp:2;
}

/* BOT/MAT等辅助标识也稍微放大 */
.card-code {
  font-size:11px;
}

.card-state {
  padding:4px 7px;
  font-size:9.5px;
}

/* 进入按钮更醒目 */
.card-enter {
  margin-top:9px;
  font-size:12.5px;
  font-weight:600;
}

/* 已经完成的路线图不属于用户操作区 */
.roadmap {
  display:none !important;
}

/* 当前真正可用的模块强调 */
.wb-card.featured {
  border-color:rgba(123,193,255,.34);
  background:
    radial-gradient(circle at 92% 0%,rgba(91,163,238,.18),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}

/* 宽屏尽量在一屏内全部看完 */
@media(min-width:1101px) {
  .wb-card,
  .small-card {
    height:142px;
  }
}

/* 平板 */
@media(max-width:1100px) {
  .wb-grid,
  .secondary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .wb-card,
  .small-card {
    min-height:145px;
    height:auto;
  }
}

/* 手机 */
@media(max-width:650px) {
  .wb-shell {
    padding-top:12px;
  }

  .wb-hero {
    min-height:auto;
    padding:18px;
  }

  .wb-hero h1 {
    font-size:30px;
  }

  .wb-grid,
  .secondary-grid {
    grid-template-columns:1fr;
  }

  .wb-card,
  .small-card {
    min-height:128px;
    height:auto;
  }
}


/* V1 Dashboard readability polish */

.wb-card h3 {
  font-size:22px;
  font-weight:650;
}

.wb-card p {
  font-size:14px;
  line-height:1.42;
}

.card-enter {
  font-size:13px;
}

.card-code {
  font-size:11.5px;
  letter-spacing:.14em;
}

.wb-section-head h2 {
  font-size:25px;
}

/* 第二排宽度与第一排视觉更协调 */
.secondary-grid .wb-card {
  min-height:142px;
}

/* 卡片经过时进一步突出当前模块 */
.wb-card:hover {
  border-color:rgba(135,198,255,.42);
  background:
    radial-gradient(circle at 90% 0%,rgba(91,163,238,.13),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.03));
}


/* =========================================================
   V1 Dashboard card overflow fix
   ========================================================= */

/* 不再强制把卡片压死在 142px */
@media(min-width:1101px) {
  .wb-card,
  .small-card,
  .secondary-grid .wb-card {
    height:auto;
    min-height:166px;
  }
}

/* 卡片内部始终限制在自身边框内 */
.wb-card {
  box-sizing:border-box;
  overflow:hidden;
}

/* 中间文字区允许正常占空间 */
.wb-card > div:not(.card-top) {
  min-width:0;
}

/* 描述保持最多两行，避免某些长说明把卡片撑得过高 */
.wb-card p {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  margin-bottom:0;
}

/* 底部操作固定留出足够空间 */
.card-enter {
  display:block;
  flex:0 0 auto;
  margin-top:12px;
  line-height:1.25;
}

/* 第一、第二排自动统一各自行高 */
.wb-grid,
.secondary-grid {
  grid-auto-rows:1fr;
}

.wb-grid .wb-card,
.secondary-grid .wb-card {
  height:100%;
}

.project-card {
  cursor:default;
}

.wb-official-link {
  display:grid;
  gap:4px;
  min-width:210px;
  padding:13px 16px;
  border:1px solid rgba(121,190,255,.25);
  border-radius:13px;
  color:#d9edff;
  background:rgba(72,139,205,.1);
  text-decoration:none;
}

.wb-official-link span {
  color:#8faccc;
  font-size:10px;
  letter-spacing:.13em;
}

.wb-official-link strong {
  font-size:13px;
  font-weight:650;
}

.wb-official-link:hover {
  border-color:rgba(121,190,255,.5);
  background:rgba(72,139,205,.18);
}

.project-links {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.project-links a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 10px;
  border:1px solid rgba(121,190,255,.24);
  border-radius:9px;
  color:#cfe8ff;
  background:rgba(76,145,211,.09);
  font-size:12px;
  font-weight:650;
  text-decoration:none;
}

.project-links a:hover {
  border-color:rgba(121,190,255,.48);
  background:rgba(76,145,211,.17);
}

/* 手机和平板仍使用自然高度 */
@media(max-width:1100px) {
  .wb-card,
  .small-card,
  .secondary-grid .wb-card {
    height:auto;
    min-height:158px;
  }
}

@media(max-width:650px) {
  .wb-card,
  .small-card,
  .secondary-grid .wb-card {
    min-height:145px;
  }
}

@media(max-width:420px) {
  .wb-official-link {
    width:100%;
    min-width:0;
  }

  .project-links {
    grid-template-columns:1fr;
  }
}


/* Account module added: keep dashboard 4 + 4 on desktop */
@media(min-width:1101px) {
  .secondary-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:1100px) {
  .secondary-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:650px) {
  .secondary-grid {
    grid-template-columns:1fr;
  }
}
