:root {
  --bg: #f6f9fe;
  --card: #ffffff;
  --text: #172033;
  --muted: #6c7890;
  --line: #e7edf6;
  --blue: #2f80ed;
  --deep: #0f2f64;
  --orange: #ff8a1f;
  --green: #19b36b;
  --shadow: 0 18px 48px rgba(31, 80, 150, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }

.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 360px minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff4e33, #ff7a1a);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 105, 42, .24);
}
.brand-text { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.brand-text i { width: 1px; height: 18px; background: #d8e1ed; }

.search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}
.search svg, .icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #1e293b;
  position: relative;
}
.icon-btn:hover { background: #eef5ff; color: var(--blue); }
.icon-btn b {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff4d3d;
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #fff);
  color: var(--deep);
  font-weight: 800;
}

.workspace {
  max-width: 1440px;
  margin: 22px auto 42px;
  padding: 0 28px;
}
.hero {
  height: 162px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  padding: 0 48px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238,246,255,.98), rgba(231,241,255,.86)),
    #edf6ff;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: 34px;
  letter-spacing: -.02em;
}
.hero p { margin: 0; color: var(--muted); font-size: 17px; }

.hero-illustration { position: relative; height: 162px; }
.glass-card {
  position: absolute;
  right: 50px;
  top: 24px;
  width: 220px;
  height: 116px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(227,238,255,.72));
  box-shadow: 0 22px 42px rgba(35, 100, 200, .16);
}
.cube {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  transform: rotate(45deg) skew(-8deg, -8deg);
}
.cube-a { right: 188px; top: 54px; background: linear-gradient(135deg, #2f80ed, #7db7ff); }
.cube-b { right: 130px; top: 76px; width: 36px; height: 36px; background: linear-gradient(135deg, #ff8a1f, #ffb36d); }
.chart {
  position: absolute;
  right: 72px;
  top: 64px;
  display: flex;
  align-items: end;
  gap: 7px;
}
.chart span { width: 8px; border-radius: 4px; background: #9ec5ff; }
.chart span:nth-child(1) { height: 22px; }
.chart span:nth-child(2) { height: 44px; background: #2f80ed; }
.chart span:nth-child(3) { height: 32px; }
.leaf {
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 34px;
  height: 72px;
  border-radius: 60px 0 60px 0;
  background: #8bb7ff;
  opacity: .55;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 26px;
  margin-top: 26px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-title h2 { margin: 0; font-size: 21px; }
.mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-block;
  background: var(--blue);
  box-shadow: 12px 0 0 #7db7ff, 0 12px 0 #7db7ff, 12px 12px 0 var(--blue);
  transform: scale(.72);
}
.app-section { margin-bottom: 24px; }
.app-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #26364f;
  font-size: 15px;
}
.app-section h3 span {
  width: 4px;
  height: 20px;
  border-radius: 5px;
  background: var(--blue);
}
.app-section:nth-of-type(3) h3 span { background: #19b36b; }
.app-section:nth-of-type(4) h3 span { background: var(--orange); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.app-card, .panel, .value-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.app-card {
  min-height: 122px;
  display: flex;
  gap: 16px;
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(31, 80, 150, .13);
}
.app-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(30, 90, 170, .18);
}
.blue { background: #2f80ed; }
.teal { background: #2bbbad; }
.purple { background: #7c4dff; }
.shield { background: #2f80ed; }
.cloud { background: #1389e8; }
.doc { background: #24b47e; }
.contract { background: #2f80ed; }
.file { background: #ff9d2e; }
.sign { background: #ff5a47; }
.book { background: #5b6ee1; }
.strategy { background: linear-gradient(135deg, #0f2f64, #f97316); }
.app-card h4 { margin: 3px 0 8px; font-size: 16px; }
.app-card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -4px !important;
}
.app-status-row span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 700;
}
.app-status-row span:first-child {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}
.app-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 32px;
  border: 1px solid #b9d3f8;
  border-radius: 10px;
  color: #1f64bf;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 700;
}

.right {
  display: grid;
  gap: 18px;
  align-content: start;
}
.panel { padding: 22px; }
.panel h2, .recent-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 17px;
}
.todo ul { list-style: none; margin: 0; padding: 0; }
.todo li {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.todo li:last-child { border-bottom: 0; }
.todo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 -10px;
  padding: 12px 10px;
  border-radius: 12px;
  color: #42526b;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.todo-row:hover,
.todo-row:focus-visible {
  background: #f3f7ff;
  color: #143a73;
  transform: translateX(2px);
  outline: none;
}
.todo-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.todo-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1ed;
  color: #ff5a47;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
}
.todo-count.pending {
  background: #fff7d6;
  color: #9a6700;
}
.more {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #2f80ed;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.more:hover,
.more:focus-visible {
  background: #f3f7ff;
  outline: none;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.status-grid p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #526078;
  font-size: 13px;
}
.status-grid i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35c774;
}
.status-grid b {
  margin-left: auto;
  color: #35a867;
  font-weight: 800;
}
.recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recent-head a { color: #2f80ed; font-size: 13px; font-weight: 700; }
.recent-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.recent-list a, .recent-list .empty {
  margin: 0;
  color: #526078;
  font-size: 13px;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 22px;
  gap: 22px;
}
.value-row div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 3px 13px;
  align-items: center;
}
.value-row .mini {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
}
.mini.shield { background: #2f80ed; }
.mini.rocket { background: #28c288; }
.mini.chart { background: #ff9d2e; }
.mini.lock { background: #8b5cf6; }
.value-row b { font-size: 15px; }
.value-row p { margin: 0; color: var(--muted); font-size: 12px; }

.hidden { display: none !important; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr; height: auto; padding: 16px 22px; }
  .top-actions { justify-content: flex-start; flex-wrap: wrap; }
  .dashboard { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .workspace { padding: 0 14px; }
  .brand-text { font-size: 14px; gap: 8px; }
  .hero { grid-template-columns: 1fr; height: auto; padding: 28px; }
  .hero-illustration { display: none; }
  .cards, .right, .status-grid, .recent-list, .value-row { grid-template-columns: 1fr; }
  .app-card { min-height: auto; }
}

.expense { background: #f97316; }
.diligence { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.expense-page .hero { margin-bottom: 24px; }
.expense-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.metric-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
.metric-card small { color: var(--muted); font-weight: 700; }
.metric-card strong { display: block; margin-top: 12px; font-size: 30px; color: var(--deep); }
.expense-note { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 16px; padding: 18px 22px; line-height: 1.7; }
.expense-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.expense-actions a { display: inline-flex; height: 38px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 12px; border: 1px solid #b9d3f8; color: #1f64bf; font-weight: 800; background: #fff; }
@media (max-width: 980px) { .expense-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .expense-grid { grid-template-columns: 1fr; } }

.dd-page .hero { margin-bottom: 24px; }
.dd-hero {
  background:
    radial-gradient(circle at 82% 36%, rgba(20,184,166,.22), transparent 24%),
    linear-gradient(90deg, rgba(239,253,250,.98), rgba(238,246,255,.88));
}
.dd-badge {
  justify-self: end;
  width: 210px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #38bdf8);
  color: #fff;
  box-shadow: 0 24px 52px rgba(15,118,110,.22);
}
.dd-badge span { font-size: 40px; font-weight: 900; letter-spacing: .08em; }
.dd-badge small { margin-top: -26px; font-weight: 800; opacity: .86; }
.dd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-bottom: 24px; }
.dd-card-wide, .dd-note, .dd-table-panel { padding: 24px; }
.dd-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dd-steps li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.dd-steps b { color: #0f766e; }
.dd-steps span, .dd-note p { color: var(--muted); line-height: 1.65; }
.dd-note p { margin: 12px 0 0; }
.dd-table-wrap { overflow-x: auto; }
.dd-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.dd-table th, .dd-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 12px; }
.dd-table th { color: #334155; background: #f8fafc; font-size: 13px; }
.dd-table td { color: #475569; font-size: 14px; }
@media (max-width: 980px) { .dd-layout { grid-template-columns: 1fr; } .dd-badge { display: none; } }

.strategy-page .hero { margin-bottom: 24px; }
.strategy-hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(249,115,22,.22), transparent 22%),
    linear-gradient(90deg, rgba(239,246,255,.98), rgba(255,247,237,.86));
}
.strategy-badge {
  justify-self: end;
  width: 230px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f2f64, #2f80ed 52%, #f97316);
  color: #fff;
  box-shadow: 0 24px 52px rgba(15,47,100,.24);
}
.strategy-badge span { font-size: 38px; font-weight: 900; letter-spacing: .08em; }
.strategy-badge small { margin-top: -28px; font-weight: 800; opacity: .9; }
.strategy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; margin-bottom: 24px; }
.strategy-card-wide, .strategy-note, .strategy-table-panel { padding: 24px; }
.strategy-pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.strategy-pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 12px;
}
.strategy-note p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }
.strategy-table-wrap { overflow-x: auto; }
.strategy-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.strategy-table th, .strategy-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 14px 12px; }
.strategy-table th { color: #334155; background: #f8fafc; font-size: 13px; }
.strategy-table td { color: #475569; font-size: 14px; }
@media (max-width: 980px) { .strategy-layout { grid-template-columns: 1fr; } .strategy-badge { display: none; } }

.app-icon.lead { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
.lead-hero { background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1px solid rgba(37, 99, 235, .12); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.lead-table { width: 100%; border-collapse: collapse; }
.lead-table th, .lead-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.lead-table th { color: var(--muted); font-weight: 700; }
@media (max-width: 980px) { .lead-layout { grid-template-columns: 1fr; } }
