:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #101827;
  background: #dce3ee;
  --blue: #0750d5;
  --line: rgb(45 68 99 / 12%);
  --edge: rgb(255 255 255 / 82%);
  --chip: #e3ebfb;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; padding: clamp(26px, 7.5vh, 78px) 28px 24px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(112deg, #f1eeeb 0%, #e2e6f0 56%, #bac8dc 100%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #1e65e5; outline-offset: 3px; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.workspace {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1190px;
  margin-inline: auto;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: linear-gradient(115deg, #f4f1ef 0%, #e8ebf3 51%, #d4ddec 100%);
  box-shadow: 0 18px 55px rgb(19 44 62 / 12%);
}
.workspace::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 65px;
  right: 0;
  width: min(45%, 480px);
  height: 250px;
  pointer-events: none;
  background: url("./notebook.webp") right 40% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 26%), linear-gradient(to bottom, #000 56%, transparent);
  mask-composite: intersect;
}
.top {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 10px 34px;
  border-radius: 23px 23px 0 0;
  border-bottom: 1px solid var(--edge);
  background: rgb(246 249 255 / 31%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 1.56rem; font-weight: 800; }
.brand img { object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 26px; }
.desktop-nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.desktop-nav a:hover { color: var(--blue); }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 7px 17px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 62%);
  background: var(--chip);
  color: #15316a;
  font-weight: 650;
}
.chip:hover { background: #d2e0f9; }
.chip .icon { color: var(--blue); }
.home-link { min-height: 36px; color: var(--blue); }
main { padding: 36px 26px 28px; }
.shortcuts { display: flex; align-items: center; gap: 22px; margin: 13px 16px 36px; }
.shortcuts h2 { display: flex; align-items: center; gap: 11px; margin: 0; padding-right: 22px; border-right: 1px solid rgb(36 63 102 / 34%); font-size: 1.125rem; white-space: nowrap; }
.shortcut-links { display: flex; gap: 12px; flex-wrap: wrap; }
.directory { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 15px; }
.panel {
  min-width: 0;
  padding: 21px 20px 20px;
  scroll-margin-top: 20px;
  background: rgb(249 251 255 / 75%);
  border: 1px solid var(--edge);
  border-radius: 19px;
}
@supports (backdrop-filter: blur(12px)) {
  .panel { background: rgb(249 251 255 / 55%); backdrop-filter: blur(12px); }
}
.panel h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 15px; padding-inline: 12px; font-size: 1.48rem; }
.panel h2 .icon { width: 28px; height: 28px; color: var(--blue); }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li + li { border-top: 1px solid var(--line); }
.panel li a {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 47px;
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 620;
  line-height: 1.45;
}
.panel li a::after {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: auto;
  background: url("./arrow-right.svg") center / contain no-repeat;
}
.panel li a:hover, .panel li a:focus-visible { background-color: #dce8fa; }
.panel li a .icon { color: #19499f; }
.panel .featured a { background: #dde8fa; }
.panel small { color: #465674; font-weight: 500; white-space: nowrap; font-size: .75em; margin-inline-start: 4px; }
#tools li a { min-height: 61px; gap: 16px; }
.mobile-nav { display: none; }
footer { text-align: center; padding: 0 18px 15px; color: #40536a; font-size: .78rem; }
footer a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  body { padding: 14px 12px; }
  .workspace { border-radius: 21px; }
  .workspace::before {
    top: 57px;
    width: 49%;
    height: 122px;
    opacity: .72;
    background-position: right 40%;
  }
  .top { padding: 8px 15px; gap: 12px; min-height: 58px; border-radius: 20px 20px 0 0; }
  .brand { font-size: 1.22rem; gap: 7px; }
  .brand img { width: 28px; height: 35px; }
  .home-link { font-size: .86rem; padding-inline: 11px; min-height: 34px; }
  .desktop-nav { display: none; }
  main { padding: 18px 13px 20px; }
  .shortcuts { display: block; margin: 0 0 20px; }
  .shortcuts h2 { font-size: 1rem; border: 0; margin-bottom: 9px; }
  .shortcuts .icon { width: 19px; height: 19px; }
  .shortcut-links { gap: 7px; }
  .shortcut-links .chip { min-height: 40px; font-size: .875rem; padding-inline: 10px; }
  .directory { display: block; }
  .panel { padding: 5px; }
  .panel + .panel { margin-top: 12px; }
  .panel h2 { font-size: 1.16rem; padding: 8px; margin: 0; }
  .panel li a, #tools li a { min-height: 46px; padding-inline: 10px; gap: 10px; font-size: .92rem; }
  .panel li .icon { width: 20px; height: 20px; }
  .panel li a::after { width: 16px; height: 16px; flex-basis: 16px; }
  .interactive .mobile-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    margin-bottom: 13px;
    border: 1px solid var(--edge);
    border-radius: 14px;
    background: rgb(250 252 255 / 68%);
  }
  .mobile-nav button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    gap: 8px;
    padding: 5px 6px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
  }
  .mobile-nav button[aria-pressed="true"] { color: #074cd5; background: #dce8fa; }
  .interactive .panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
  .interactive .panel + .panel { margin-top: 0; }
  .interactive[data-panel="radar"] #tools,
  .interactive[data-panel="tools"] #radar { display: none; }
}
