:root {
  --bg: #f6f8fc;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --sidebar: #f3f6fb;
  --text: #111827;
  --muted: #8a93a3;
  --line: #e8edf5;
  --primary: #4c7dff;
  --primary-deep: #3266e4;
  --primary-soft: #e8efff;
  --orange: #ee8a32;
  --green: #43bd78;
  --shadow: 0 8px 24px rgba(24, 35, 58, 0.09);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--sidebar);
  padding: 46px 10px 28px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 36px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 28%, #9bd0ff 0 22%, transparent 23%),
    linear-gradient(140deg, #69a1ff 0 45%, #365df0 46% 100%);
}

.brand h1 {
  margin: 0 0 5px;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.brand p {
  margin: 0;
  font-size: 14px;
  color: #131a27;
}

.category-list {
  display: grid;
  gap: 5px;
}

.category {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #28313f;
  background: transparent;
  text-align: left;
  font-size: 18px;
}

.category svg {
  width: 23px;
  height: 23px;
  stroke-width: 2;
}

.category:hover,
.category.is-active {
  background: #e4e7ff;
  color: #151b2d;
}

.official-toolbox-link {
  position: absolute;
  right: 12px;
  bottom: 20px;
  left: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 1px solid #f1d8bd;
  border-radius: var(--radius);
  background: #fff8ef;
  padding: 12px;
  color: #7c4616;
}

.official-toolbox-link:hover {
  background: #fff2df;
  border-color: #e8bf91;
}

.official-toolbox-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #b7651c;
}

.official-toolbox-icon svg {
  width: 19px;
  height: 19px;
}

.official-toolbox-link strong,
.official-toolbox-link em {
  display: block;
}

.official-toolbox-link strong {
  font-size: 16px;
  line-height: 1.2;
}

.official-toolbox-link em {
  margin-top: 4px;
  color: #a06c36;
  font-size: 12px;
  font-style: normal;
}

.workspace {
  margin-left: 260px;
  padding: 27px 90px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(930px, calc(100vw - 700px));
  min-width: 560px;
  height: 58px;
  border-radius: 30px;
  background: #f2f4f9;
  padding: 0 30px;
  color: #6e4ff2;
}

.search-box svg {
  width: 29px;
  height: 29px;
  stroke-width: 3;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-size: 18px;
}

.search-box input::placeholder {
  color: #a3a9b5;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-button,
.avatar,
.float-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f4f6fa;
  color: #313948;
}

.icon-button svg,
.avatar svg,
.float-actions svg {
  width: 22px;
  height: 22px;
}

.icon-button.small {
  width: 34px;
  height: 34px;
}

.benefit-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  border-radius: 22px;
  padding: 0 18px;
  white-space: nowrap;
  font-size: 16px;
}

.benefit-button {
  background: #fff3e6;
  color: #8a4b14;
}

.secondary-button {
  background: #f1f4f9;
  color: #3c4658;
  font-weight: 700;
}

.benefit-button svg,
.secondary-button svg {
  width: 20px;
  height: 20px;
}

.avatar {
  color: #b9bcc3;
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  margin: 0 auto 24px;
  padding: 24px 30px;
  max-width: 1334px;
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(76, 125, 255, 0.14), rgba(67, 189, 120, 0.12)),
    #fff;
  box-shadow: var(--shadow);
}

.hero-copy p,
.panel-title p {
  margin: 0 0 8px;
  color: var(--primary-deep);
  font-weight: 700;
}

.hero-copy h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.quick-stats {
  display: flex;
  gap: 14px;
}

.quick-stats div {
  min-width: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: 22px;
}

.quick-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.tool-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.tool-badge::before {
  content: "";
  position: absolute;
  inset: 21px 16px 14px;
  border-radius: 8px;
  background: currentColor;
  box-shadow: 0 10px 20px rgba(76, 125, 255, 0.22);
}

.tool-badge span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.tool-badge.green {
  background: #e5f8ee;
  color: var(--green);
}

.tool-badge.orange {
  background: #fff0df;
  color: var(--orange);
}

.float-actions {
  position: fixed;
  right: 20px;
  bottom: 26px;
  display: grid;
  gap: 12px;
}

.float-actions button {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: none;
  font-weight: 700;
}

@media (max-width: 1380px) {
  body {
    min-width: 980px;
  }

  .workspace {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 980px) {
  body {
    min-width: 0;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }

  .official-toolbox-link {
    position: static;
    margin-top: 14px;
  }

  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    margin-left: 0;
    padding: 18px;
  }

  .topbar,
  .hero-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .float-actions {
    display: none;
  }
}
