:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #606060;
  --line: #e8e8e8;
  --panel: #ffffff;
  --accent: #00a5ec;
  --accent-dark: #0087d0;
  --code: #f5f5f5;
  --nav-width: 268px;
  --toc-width: 220px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.75 Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: -50px;
  left: 16px;
  padding: 8px 12px;
  background: #111;
  color: white;
  border-radius: 4px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1440px;
  height: 100%;
  margin: auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.brand-mark {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
}
.search-trigger {
  width: 312px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
}
.search-trigger kbd,
.search-field kbd {
  margin-left: auto;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
  background: var(--bg);
}
.search-icon {
  width: 14px;
  height: 14px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.search-icon:after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: currentColor;
  right: -5px;
  bottom: -3px;
  transform: rotate(45deg);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 13px;
}
.header-actions a {
  color: inherit;
  text-decoration: none;
}
.external {
  font-size: 15px;
}
.theme-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-picker select {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  appearance: none;
  cursor: pointer;
  outline: 0;
}
.mobile-menu {
  display: none;
}
.layout {
  max-width: 1440px;
  margin: auto;
}
.site-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 26px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.docs-shell {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr) var(--toc-width);
  gap: 0;
}
.sidebar {
  border-right: 1px solid var(--line);
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow: auto;
  padding: 26px 18px 40px;
}
.nav-section {
  margin: 0 0 20px;
}
.nav-title {
  font-size: 15px;
  font-weight: 650;
  color: #30353a;
  margin: 0 0 6px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-title:after {
  content: "⌄";
  font-weight: 400;
  color: #969da5;
  font-size: 17px;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  color: #60666d;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.55;
}
.nav-links a:hover {
  background: #f1f3f5;
  color: var(--text);
}
.nav-links a.active {
  background: #e6f4ff;
  color: #006fb0;
  font-weight: 600;
}
.content {
  min-width: 0;
  padding: 58px max(44px, 6vw) 70px;
}
.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
}
.article h1 {
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 720;
  margin: 0 0 28px;
}
.article h2,
.article h3,
.article h4 {
  scroll-margin-top: 84px;
}
.article h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 52px 0 17px;
  letter-spacing: 0;
}
.article h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 34px 0 12px;
}
.article p {
  margin: 0 0 17px;
  color: #3d4349;
}
.article a {
  color: var(--accent);
  text-decoration: none;
}
.article ul,
.article ol {
  padding-left: 22px;
  margin: 10px 0 18px;
}
.article li {
  padding-left: 3px;
  margin: 5px 0;
  color: #3d4349;
}
.article blockquote {
  margin: 18px 0;
  padding: 13px 18px;
  border-left: 3px solid var(--accent);
  background: #eff7ff;
  color: #1a5a80;
  border-radius: 0 5px 5px 0;
}
.article code {
  font:
    12.5px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: var(--code);
  border: 1px solid #e1e8ef;
  padding: 2px 5px;
  border-radius: 4px;
  color: #3d4a55;
}
.code-block {
  position: relative;
  background: #f5f7f7;
  border: 1px solid #e7ebea;
  border-radius: 6px;
  padding: 16px 48px 16px 17px;
  margin: 18px 0;
  overflow: auto;
  font:
    13px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #2b3540;
}
.copy {
  position: absolute;
  right: 9px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #79817f;
  font-size: 15px;
  cursor: pointer;
}
.notice {
  margin: 22px 0;
  padding: 13px 16px;
  border: 1px solid #b5d8f5;
  border-radius: 6px;
  background: #eff7ff;
}
.notice strong {
  display: block;
  color: #006fb0;
  font-size: 13px;
  margin-bottom: 4px;
}
.notice p {
  margin: 0;
  color: #4a6a80;
}
.article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 18px 0 25px;
  display: block;
  overflow: auto;
}
.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 150px;
}
.article th {
  background: #f7f8f8;
  color: #343a3f;
  font-weight: 600;
}
.article td {
  color: #4b5157;
}
.page-nav {
  max-width: 760px;
  margin: 120px auto 0;
  display: flex;
  gap: 14px;
}
.page-nav a {
  flex: 1;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  padding: 11px 14px;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.page-nav a:last-child {
  text-align: right;
  align-items: flex-end;
}
.page-nav span {
  font-size: 12px;
  color: var(--muted);
}
.page-nav strong {
  font-size: 13px;
  margin-top: 2px;
}
.toc {
  padding: 64px 20px 20px 18px;
  color: #727980;
}
.toc-inner {
  position: sticky;
  top: 90px;
  border-left: 1px solid var(--line);
  padding-left: 17px;
}
.toc h2 {
  font-size: 14px;
  margin: 0 0 10px;
  color: #3f464c;
}
.toc a {
  display: block;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  padding: 4px 0;
}
.toc a:hover {
  color: var(--accent);
}
.home {
  padding-top: 64px;
}
.home-main {
  max-width: 970px;
  margin: 0 auto;
}
.hero {
  padding: 26px 0 50px;
  max-width: 700px;
}
.eyebrow {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.2;
  margin: 0 0 17px;
  font-weight: 740;
}
.hero .lede {
  font-size: 17px;
  line-height: 1.75;
  color: #586067;
  max-width: 650px;
  margin: 0 0 27px;
}
.buttons {
  display: flex;
  gap: 11px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: #3c4346;
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.button.primary:hover {
  background: var(--accent-dark);
}
.path-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 22px;
  margin-bottom: 66px;
  max-width: 970px;
}
.path-header {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}
.path-header strong {
  font-size: 13px;
  color: #343a3d;
}
.path-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
.path-list li {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 3px 14px;
}
.path-list li:first-child {
  border: 0;
  padding-left: 0;
}
.path-list span {
  color: #9aa1a5;
  font:
    12px ui-monospace,
    monospace;
  display: block;
  margin-bottom: 5px;
}
.path-list a {
  color: #3f474b;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}
.home-section {
  margin: 0 0 56px;
}
.section-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 7px;
}
.home-section h2 {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 20px;
}
.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}
.entry {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 17px 18px;
  display: flex;
  gap: 15px;
  min-height: 92px;
  text-decoration: none;
  color: var(--text);
}
.entry:hover {
  border-color: #a8c4dc;
  box-shadow: 0 2px 8px #1d3a5c0a;
}
.entry-num {
  font:
    13px ui-monospace,
    monospace;
  color: #00a5ec;
  padding-top: 2px;
}
.entry strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.entry p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.tool {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  min-height: 100px;
  text-decoration: none;
  color: var(--text);
}
.tool:hover {
  border-color: #a8c4dc;
}
.tool strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}
.tool span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.node-tip {
  border-left: 3px solid var(--accent);
  padding: 3px 0 3px 14px;
  margin: 5px 0 0;
  color: #5a6b78;
  font-size: 13px;
}
.node-tip strong {
  color: #15628f;
}
.article-tip {
  margin: 2rem 0 0;
  padding: 0.9rem 1.1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}
.article .article-tip h2 {
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  color: #b45309;
  font-size: 0.95rem;
}
.article .article-tip p {
  margin: 0.55rem 0 0;
  color: #5a6b78;
  font-size: 0.85rem;
}
.article .article-tip h2 + p {
  margin-top: 0;
}
.config-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 4px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.config-tab {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.config-tab.active {
  background: var(--accent);
  color: #fff;
}
.config-panel {
  margin: 0 0 24px;
}
.config-panel.hidden {
  display: none;
}
.config-steps-intro.hidden {
  display: none;
}
.config-panel-intro {
  margin-bottom: 16px;
}
.config-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  gap: 14px;
  margin: 16px 0;
}
.config-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.config-form input,
.config-form select {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
}
.config-form select option {
  font-weight: 400;
}
.config-base-url-tip {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.config-form input:focus,
.config-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #00a5ec1f;
}
.config-prompt {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--code);
}
.config-copy-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.config-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}
.copy-prompt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.config-prompt pre {
  max-height: 420px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #2b3540;
  font:
    12px/1.65 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.config-steps {
  margin-top: 18px;
}
.inline-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--brand);
  background: var(--soft);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  vertical-align: baseline;
}
.inline-copy:hover {
  border-color: var(--brand);
}
.inline-copy span {
  font-family: inherit;
}
.config-advice {
  margin: 14px 0 0;
}
.config-advice .notice {
  margin: 0;
}
.config-advice .notice strong {
  font-size: 15px;
}
.config-terminal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}
.config-terminal {
  overflow: hidden;
  border: 1px solid #3a4147;
  border-radius: 8px;
  background: #101316;
  box-shadow: 0 8px 20px #16222e16;
}
.config-terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #3a4147;
  color: #c6cdd4;
  font-size: 12px;
}
.terminal-dots {
  display: inline-flex;
  gap: 5px;
}
.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e07168;
}
.terminal-dots i:nth-child(2) {
  background: #d9ad62;
}
.terminal-dots i:nth-child(3) {
  background: #75b87a;
}
.config-terminal pre,
.config-json pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #d6dee5;
  background: transparent;
  font:
    12px/1.72 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  white-space: pre-wrap;
}
.config-terminal pre {
  line-height: 1.3;
}
.terminal-command {
  color: #f2f5f7;
}
.terminal-choice,
.terminal-success {
  color: #83cf8a;
}
.terminal-input {
  color: #8ec8e8;
}
.config-terminal-layout .config-steps {
  margin: 0;
}
.config-json {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.config-json-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.copy-model-fields {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--brand);
  background: var(--page);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.copy-model-fields:hover {
  border-color: var(--brand);
}
.copy-prompt.copied,
.copy-model-fields.copied {
  color: #006fb0;
  border-color: #006fb0;
  background: #d9f1ff;
}
.copy-prompt .copy-icon,
.copy-model-fields .copy-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.config-json pre {
  color: var(--ink);
}
.config-file-guide {
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.config-file-guide h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.config-file-guide ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}
.config-file-guide li {
  padding-left: 2px;
}
.config-file-guide strong,
.config-file-guide span {
  display: block;
}
.config-file-guide strong {
  margin-bottom: 3px;
  font-size: 13px;
}
.config-file-guide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.article .config-help-note {
  margin: 16px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.search-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
  background: #1b263155;
  padding-top: 14vh;
}
.search-modal.open {
  display: block;
}
.search-panel {
  width: min(610px, calc(100% - 28px));
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px #1b263138;
  border-radius: 8px;
  overflow: hidden;
}
.search-field {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.search-field input {
  font: 15px inherit;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-results {
  max-height: 390px;
  overflow: auto;
  padding: 8px;
}
.search-result {
  display: block;
  border-radius: 5px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
}
.search-result:hover {
  background: var(--panel);
}
.search-result strong {
  display: block;
  font-size: 13px;
}
.search-result span {
  color: var(--muted);
  font-size: 12px;
}
.empty-search {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
@media (max-width: 1050px) {
  .docs-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .toc {
    display: none;
  }
  .content {
    padding-left: 44px;
    padding-right: 44px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .site-footer {
    padding: 12px 16px 16px;
    font-size: 12px;
  }
  .site-header {
    height: 56px;
  }
  .header-inner {
    padding: 0 16px;
    gap: 13px;
  }
  .brand {
    font-size: 14px;
  }
  .mobile-menu {
    display: flex;
    order: 3;
    margin-left: 0;
    width: 27px;
    height: 27px;
    border: 0;
    background: transparent;
    padding: 5px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .mobile-menu span {
    display: block;
    height: 1.5px;
    background: var(--text);
    width: 17px;
  }
  .search-trigger {
    margin-left: auto;
    width: 31px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .search-trigger span:not(.search-icon),
  .search-trigger kbd {
    display: none;
  }
  .header-actions {
    display: none;
  }
  .docs-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 20;
    right: 0;
    top: 56px;
    bottom: 0;
    width: 280px;
    height: auto;
    background: var(--bg);
    transform: translateX(101%);
    transition: 0.2s;
    box-shadow: -8px 0 20px #1112;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .content {
    padding: 38px 22px 50px;
  }
  .article h1 {
    font-size: 28px;
  }
  .article h2 {
    font-size: 21px;
    margin-top: 42px;
  }
  .home {
    padding-top: 30px;
  }
  .home-main {
    width: 100%;
  }
  .hero {
    padding: 10px 0 36px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero .lede {
    font-size: 15px;
  }
  .path-card {
    margin-bottom: 46px;
    padding: 15px;
  }
  .path-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
  }
  .path-list li {
    border-left: 0;
    padding: 0;
  }
  .entry-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .home-section {
    margin-bottom: 43px;
  }
  .home-section h2 {
    font-size: 23px;
  }
  .page-nav {
    flex-direction: row;
  }
  .page-nav a:last-child {
    text-align: right;
    align-items: flex-end;
  }
  .article table {
    font-size: 12px;
  }
  .buttons {
    flex-wrap: wrap;
  }
  .config-form {
    grid-template-columns: 1fr;
  }
  .config-terminal-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .config-tabs {
    display: flex;
  }
  .config-tab {
    flex: 1;
    padding: 0 8px;
  }
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #1e1e1e;
    --text: #f2f5f7;
    --muted: #a6adb4;
    --line: #363a3f;
    --panel: #2a2a2e;
    --accent: #4da6ff;
    --accent-dark: #2f8fd8;
    --code: #262b30;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1e1e;
  --text: #f2f5f7;
  --muted: #a6adb4;
  --line: #363a3f;
  --panel: #2a2a2e;
  --accent: #4da6ff;
  --accent-dark: #2f8fd8;
  --code: #262b30;
}
:root[data-theme="dark"] .nav-links a.active {
  background: #143d5c;
  color: #7cc7ff;
}
:root[data-theme="dark"] .nav-links a:hover {
  background: #2a333c;
  color: #edf2f0;
}
:root[data-theme="dark"] .nav-links a {
  color: #b7c3ce;
}
:root[data-theme="dark"] .nav-title {
  color: #e3e9ef;
}
:root[data-theme="dark"] .nav-title:after {
  color: #aab6c1;
}
:root[data-theme="dark"] .hero h1 {
  color: #edf2f0;
}
:root[data-theme="dark"] .toc {
  color: #b7c3ce;
}
:root[data-theme="dark"] .toc h2 {
  color: #e3e9ef;
}
:root[data-theme="dark"] .toc-inner {
  border-left-color: #4a5a68;
}
:root[data-theme="dark"] .entry,
:root[data-theme="dark"] .tool {
  color: var(--text);
}
:root[data-theme="dark"] .online-shortcut a {
  color: #7cc7ff;
}
:root[data-theme="dark"] .article p,
:root[data-theme="dark"] .article li,
:root[data-theme="dark"] .article td {
  color: #c6cdd4;
}
:root[data-theme="dark"] .article th {
  background: #262a2e;
  color: #eaf0f4;
}
:root[data-theme="dark"] .notice {
  background: #143248;
  border-color: #1e5580;
}
:root[data-theme="dark"] .article-tip {
  background: #382f18;
  border-color: #725a1d;
}
:root[data-theme="dark"] .article .article-tip h2 {
  color: #f4c75d;
}
:root[data-theme="dark"] .article .article-tip p {
  color: #e1d4ad;
}
:root[data-theme="dark"] .config-prompt pre {
  color: #e8f3fb;
}
:root[data-theme="dark"] .article blockquote {
  background: #143348;
  color: #b9d9f0;
}
:root[data-theme="dark"] .article code {
  color: #e8f3fb;
  background: #28323b;
  border-color: #4a5a68;
}
:root[data-theme="dark"] .article pre {
  color: #e8f3fb;
  background: #232b33;
  border-color: #4a5a68;
}
:root[data-theme="dark"] .article pre code {
  color: inherit;
  background: transparent;
  border-color: transparent;
}
:root[data-theme="dark"] .article table {
  border-color: #4a5a68;
  background: #232c34;
}
:root[data-theme="dark"] .article th {
  color: #eff5fa;
  background: #2b3540;
  border-color: #4a5a68;
}
:root[data-theme="dark"] .article td {
  border-color: #4a5a68;
}
:root[data-theme="dark"] .source-article .starlight-aside {
  background: #232c34;
  border-color: #4a5a68;
}
:root[data-theme="dark"] .source-article .starlight-aside::before {
  color: #b7c6d0;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .nav-links a.active {
    background: #143d5c;
    color: #7cc7ff;
  }
  :root[data-theme="auto"] .nav-links a:hover {
    background: #2a333c;
    color: #edf2f0;
  }
  :root[data-theme="auto"] .nav-links a {
    color: #b7c3ce;
  }
  :root[data-theme="auto"] .nav-title {
    color: #e3e9ef;
  }
  :root[data-theme="auto"] .nav-title:after {
    color: #aab6c1;
  }
  :root[data-theme="auto"] .hero h1 {
    color: #edf2f0;
  }
  :root[data-theme="auto"] .toc {
    color: #b7c3ce;
  }
  :root[data-theme="auto"] .toc h2 {
    color: #e3e9ef;
  }
  :root[data-theme="auto"] .toc-inner {
    border-left-color: #4a5a68;
  }
  :root[data-theme="auto"] .article p,
  :root[data-theme="auto"] .article li,
  :root[data-theme="auto"] .article td {
    color: #c6cdd4;
  }
  :root[data-theme="auto"] .article th {
    color: #eff5fa;
    background: #2b3540;
    border-color: #4a5a68;
  }
  :root[data-theme="auto"] .article blockquote {
    background: #143348;
    color: #b9d9f0;
  }
  :root[data-theme="auto"] .article code {
    color: #e8f3fb;
    background: #28323b;
    border-color: #4a5a68;
  }
  :root[data-theme="auto"] .article pre {
    color: #e8f3fb;
    background: #232b33;
    border-color: #4a5a68;
  }
  :root[data-theme="auto"] .article pre code {
    color: inherit;
    background: transparent;
    border-color: transparent;
  }
  :root[data-theme="auto"] .article table {
    border-color: #4a5a68;
    background: #232c34;
  }
  :root[data-theme="auto"] .source-article .starlight-aside {
    background: #232c34;
    border-color: #4a5a68;
  }
  :root[data-theme="auto"] .source-article .starlight-aside::before {
    color: #b7c6d0;
  }
  :root[data-theme="auto"] .notice {
    background: #143248;
    border-color: #1e5580;
  }
  :root[data-theme="auto"] .notice p {
    color: #bfd3e2;
  }
  :root[data-theme="auto"] .node-tip {
    background: #382f18;
    border-color: #725a1d;
    color: #e1d4ad;
  }
  :root[data-theme="auto"] .node-tip strong {
    color: #f4c75d;
  }
  :root[data-theme="auto"] .article-tip {
    background: #382f18;
    border-color: #725a1d;
  }
  :root[data-theme="auto"] .article .article-tip h2 {
    color: #f4c75d;
  }
  :root[data-theme="auto"] .article .article-tip p {
    color: #e1d4ad;
  }
  :root[data-theme="auto"] .config-prompt pre {
    color: #e8f3fb;
  }
  :root[data-theme="auto"] .eyebrow,
  :root[data-theme="auto"] .path-header strong,
  :root[data-theme="auto"] .path-list span,
  :root[data-theme="auto"] .entry-num {
    color: #5cb8ff;
    background: #10324a;
    border-color: #1c4a6b;
  }
  :root[data-theme="auto"] .hero h1 {
    color: var(--text);
  }
  :root[data-theme="auto"] .online-shortcut a {
    color: #7cc7ff;
  }
  :root[data-theme="auto"] .entry:hover,
  :root[data-theme="auto"] .tool:hover {
    border-color: #20577f;
    box-shadow: 0 8px 32px #00000040;
  }
}

/* The homepage uses the source site's distinct, centered landing layout. */
.home {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}
.home-main {
  width: min(980px, 88vw);
  max-width: none;
}
.home-mobile-nav {
  display: none;
}
.hero {
  max-width: none;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  margin: 0 0 1.2rem;
  padding: 0 0.75rem;
  color: #0087d0;
  background: #e6f4ff;
  border: 1px solid #c2e8ff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
}
.hero h1 {
  max-width: 680px;
  margin: 0 auto;
  color: #17181c;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
}
.hero .lede {
  max-width: 580px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.82;
}
.buttons {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  min-height: 2.75rem;
  height: auto;
  padding: 0 1.2rem;
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  font-size: 0.9rem;
  font-weight: 600;
}
.button.primary {
  box-shadow: 0 4px 16px #00a5ec40;
}
.button.primary:hover {
  box-shadow: 0 6px 24px #00a5ec59;
  transform: translateY(-1px);
}
.online-shortcut {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.online-shortcut a {
  color: #0087d0;
  font-weight: 600;
  text-decoration: none;
}
.online-shortcut a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.path-card {
  max-width: none;
  padding: 0;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 14px;
  background: var(--line);
}
.path-header {
  min-height: 55px;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--panel);
  font-size: 0.82rem;
  font-weight: 400;
}
.path-header strong {
  padding: 0.2rem 0.55rem;
  color: #0a6aa8;
  background: #e6f4ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.path-list {
  gap: 1px;
}
.path-list li,
.path-list li:first-child {
  padding: 1.2rem 1rem;
  border: 0;
  background: var(--panel);
}
.path-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.35rem;
  color: #0087d0;
  background: #e6f4ff;
  border-radius: 7px;
  font:
    700 0.72rem ui-monospace,
    monospace;
}
.path-list a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.home-section {
  margin: clamp(2rem, 5vw, 4rem) 0 0;
}
.tool-section {
  margin-top: clamp(1.1rem, 2.5vw, 2rem);
}
.section-label {
  display: block;
  margin: 0 0 0.5rem;
  color: #0087d0;
  font-size: 0.76rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
}
.entry-grid,
.tool-grid {
  gap: 0.85rem;
}
.entry {
  gap: 1rem;
  min-height: auto;
  padding: 1.15rem;
  background: var(--panel);
  border-radius: 14px;
}
.entry:hover,
.tool:hover {
  border-color: #a5d8ff;
  box-shadow: 0 8px 32px #0000000f;
  transform: translateY(-2px);
}
.entry-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #0a6aa8;
  background: #e6f4ff;
  border-radius: 11px;
  font:
    700 0.68rem ui-monospace,
    monospace;
}
.entry strong {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.entry p,
.tool span {
  font-size: 0.82rem;
}
.tool {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 112px;
  padding: 1.3rem;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 7px #2943600a;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.tool:hover {
  border-color: #c6d4e5;
  box-shadow: 0 8px 20px #29436014;
  transform: translateY(-2px);
}
.tool-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border-radius: 13px;
  background: #f2f6fb;
  color: #2f6fed;
  transition: background-color 180ms ease;
}
.tool:hover .tool-icon {
  background: #eaf1ff;
}
.tool-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}
.tool-content {
  min-width: 0;
}
.tool strong {
  display: block;
  margin: 0 0 0.38rem;
  color: #1d2939;
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.35;
}
.tool-content > span {
  display: block;
  color: #718096;
  font-size: 0.82rem;
  line-height: 1.62;
}
.tool-2 .tool-icon { color: #db7b12; }
.tool-2:hover .tool-icon { background: #fff4e6; }
.tool-3 .tool-icon { color: #0087d0; }
.tool-3:hover .tool-icon { background: #e6f4ff; }
.tool-4 .tool-icon { color: #7b61d1; }
.tool-4:hover .tool-icon { background: #f0edff; }
.tool-5 .tool-icon { color: #0c8dac; }
.tool-5:hover .tool-icon { background: #e8f7fb; }
.tool-6 .tool-icon { color: #e45b58; }
.tool-6:hover .tool-icon { background: #fff0ef; }
.tool-7 .tool-icon { color: #64748b; }
.tool-7:hover .tool-icon { background: #eef2f6; }
@media (max-width: 760px) {
  .home-mobile-nav {
    display: contents;
  }
  .tool {
    min-height: 100px;
    padding: 1rem;
    border-radius: 14px;
  }
  .tool-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 11px;
  }
}
.node-tip {
  margin: 4rem 0 0;
  padding: 0.9rem 1.1rem;
  color: var(--muted);
  background: #f4f5f7;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  font-size: 0.85rem;
}
.node-tip strong {
  color: #475467;
  font-size: 0.85rem;
}

:root[data-theme="dark"] .tool {
  background: #262a2e;
  border-color: #3a4349;
  box-shadow: 0 2px 7px #00000024;
}
:root[data-theme="dark"] .tool:hover {
  border-color: #54626b;
  box-shadow: 0 8px 20px #00000042;
}
:root[data-theme="dark"] .tool-icon,
:root[data-theme="dark"] .tool:hover .tool-icon {
  background: #2b333b;
}
:root[data-theme="dark"] .tool strong {
  color: #eef4f7;
}
:root[data-theme="dark"] .tool-content > span {
  color: #aab6bf;
}
:root[data-theme="dark"] .node-tip {
  background: #262b30;
  border-color: #3d474e;
  color: #b7c3ce;
}
:root[data-theme="dark"] .node-tip strong {
  color: #dce5e0;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .tool {
    background: #262a2e;
    border-color: #3a4349;
    box-shadow: 0 2px 7px #00000024;
  }
  :root[data-theme="auto"] .tool:hover {
    border-color: #54626b;
    box-shadow: 0 8px 20px #00000042;
  }
  :root[data-theme="auto"] .tool-icon,
  :root[data-theme="auto"] .tool:hover .tool-icon {
    background: #2b333b;
  }
  :root[data-theme="auto"] .tool strong {
    color: #eef4f7;
  }
  :root[data-theme="auto"] .tool-content > span {
    color: #aab6bf;
  }
  :root[data-theme="auto"] .node-tip {
    background: #262b30;
    border-color: #3d474e;
    color: #b7c3ce;
  }
  :root[data-theme="auto"] .node-tip strong {
    color: #dce5e0;
  }
}

/* Source article markup is kept intact, including tutorial screenshots. */
.source-article h2 {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
}
.source-article h3 {
  font-weight: 650;
}
.source-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.source-article figure {
  margin: 1.25rem 0;
}
.source-article figure img {
  margin: 0;
}
.source-article .starlight-aside {
  position: relative;
  margin: 1.25rem 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.source-article .starlight-aside::before {
  content: attr(aria-label);
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.source-article .starlight-aside__title {
  display: none;
}
.source-article .starlight-aside p {
  margin: 0;
}
.source-article pre {
  position: relative;
  overflow: auto;
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  font:
    13px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.source-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}
.source-article .expressive-code {
  margin: 1.2rem 0;
}
.source-article .expressive-code pre {
  margin: 0;
}
.source-article .sl-heading-wrapper {
  scroll-margin-top: 90px;
}
.source-article .sl-heading-wrapper h2,
.source-article .sl-heading-wrapper h3 {
  margin-bottom: 0.9rem;
}
.source-article .sl-heading-wrapper:first-of-type h2 {
  margin-top: 2.8rem;
}

/* Match the reference's quieter home card typography. */
.home .entry strong,
.home .tool strong {
  font-weight: 650;
}
.home .path-list a {
  font-weight: 650;
}
.home .entry-num,
.home .path-list span {
  font-weight: 700;
}

/* ============================================================
   首页工具卡片 · 现代灵动风格
   渐变图标 / hover 悬浮光效 / 入场动画 / 箭头动效
   ============================================================ */
.tool-grid {
  gap: 1.05rem;
}
.tool {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  min-height: 116px;
  padding: 1.35rem 2.7rem 1.35rem 1.35rem;
  border: 1px solid rgba(0, 165, 236, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 2px 10px rgba(16, 60, 110, 0.06);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 280ms ease;
  animation: toolIn 560ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.tool:nth-child(1) { animation-delay: 0.03s; }
.tool:nth-child(2) { animation-delay: 0.09s; }
.tool:nth-child(3) { animation-delay: 0.15s; }
.tool:nth-child(4) { animation-delay: 0.21s; }
.tool:nth-child(5) { animation-delay: 0.27s; }
.tool:nth-child(6) { animation-delay: 0.33s; }
.tool:nth-child(7) { animation-delay: 0.39s; }
.tool:nth-child(8) { animation-delay: 0.45s; }
@keyframes toolIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tool:hover {
  border-color: rgba(0, 165, 236, 0.5);
  box-shadow:
    0 16px 36px rgba(0, 96, 168, 0.16),
    0 4px 14px rgba(0, 165, 236, 0.1);
  transform: translateY(-4px);
}
.tool-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
  background:
    radial-gradient(130px 96px at 10% 6%, rgba(0, 165, 236, 0.18), transparent 72%),
    radial-gradient(150px 100px at 92% 98%, rgba(0, 176, 224, 0.14), transparent 72%);
}
.tool:hover .tool-glow {
  opacity: 1;
}
.home .tool-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  box-shadow:
    0 4px 12px rgba(0, 90, 160, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 280ms ease;
}
.home .tool:hover .tool-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow:
    0 10px 20px rgba(0, 110, 190, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.home .tool-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.tool-content {
  min-width: 0;
  padding-top: 2px;
}
.tool strong {
  display: block;
  margin: 0 0 0.4rem;
  color: #1d2939;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1.35;
  transition: color 220ms ease;
}
.tool:hover strong {
  color: #006fb0;
}
.tool-content > span {
  display: block;
  color: #718096;
  font-size: 0.83rem;
  line-height: 1.62;
}
.home .tool-arrow {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #00a5ec;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.home .tool-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
}
.home .tool:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* 各卡片图标渐变（light / dark / auto 三主题统一引用变量） */
:root {
  --t1-grad: linear-gradient(135deg, #4da6ff 0%, #0074bc 100%);
  --t2-grad: linear-gradient(135deg, #ffb36b 0%, #db7b12 100%);
  --t3-grad: linear-gradient(135deg, #00c0f0 0%, #0087d0 100%);
  --t4-grad: linear-gradient(135deg, #a78bfa 0%, #7b61d1 100%);
  --t5-grad: linear-gradient(135deg, #3ab8d6 0%, #0c8dac 100%);
  --t6-grad: linear-gradient(135deg, #ff8f8f 0%, #e45b58 100%);
  --t7-grad: linear-gradient(135deg, #8fa3b8 0%, #5a6b78 100%);
  --t8-grad: linear-gradient(135deg, #6a7bff 0%, #4b4fd1 100%);
}
.tool-1 .tool-icon { background: var(--t1-grad); }
.tool-2 .tool-icon { background: var(--t2-grad); }
.tool-3 .tool-icon { background: var(--t3-grad); }
.tool-4 .tool-icon { background: var(--t4-grad); }
.tool-5 .tool-icon { background: var(--t5-grad); }
.tool-6 .tool-icon { background: var(--t6-grad); }
.tool-7 .tool-icon { background: var(--t7-grad); }
.tool-8 .tool-icon { background: var(--t8-grad); }
:root[data-theme="dark"] .tool-1 .tool-icon,
:root[data-theme="auto"] .tool-1 .tool-icon { background: var(--t1-grad); }
:root[data-theme="dark"] .tool-2 .tool-icon,
:root[data-theme="auto"] .tool-2 .tool-icon { background: var(--t2-grad); }
:root[data-theme="dark"] .tool-3 .tool-icon,
:root[data-theme="auto"] .tool-3 .tool-icon { background: var(--t3-grad); }
:root[data-theme="dark"] .tool-4 .tool-icon,
:root[data-theme="auto"] .tool-4 .tool-icon { background: var(--t4-grad); }
:root[data-theme="dark"] .tool-5 .tool-icon,
:root[data-theme="auto"] .tool-5 .tool-icon { background: var(--t5-grad); }
:root[data-theme="dark"] .tool-6 .tool-icon,
:root[data-theme="auto"] .tool-6 .tool-icon { background: var(--t6-grad); }
:root[data-theme="dark"] .tool-7 .tool-icon,
:root[data-theme="auto"] .tool-7 .tool-icon { background: var(--t7-grad); }
:root[data-theme="dark"] .tool-8 .tool-icon,
:root[data-theme="auto"] .tool-8 .tool-icon { background: var(--t8-grad); }
/* 深色主题适配 */
:root[data-theme="dark"] .tool {
  background: linear-gradient(180deg, #282d33 0%, #23282d 100%);
  border-color: rgba(77, 166, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}
:root[data-theme="dark"] .tool:hover {
  border-color: rgba(77, 166, 255, 0.55);
  box-shadow:
    0 18px 44px rgba(0, 84, 168, 0.34),
    0 4px 14px rgba(0, 0, 0, 0.3);
}
:root[data-theme="dark"] .tool-glow {
  background:
    radial-gradient(130px 96px at 10% 6%, rgba(77, 166, 255, 0.2), transparent 72%),
    radial-gradient(150px 100px at 92% 98%, rgba(0, 176, 224, 0.16), transparent 72%);
}
:root[data-theme="dark"] .tool strong {
  color: #eaf0f4;
}
:root[data-theme="dark"] .tool:hover strong {
  color: #7cc7ff;
}
:root[data-theme="dark"] .tool-content > span {
  color: #aab6bf;
}
:root[data-theme="dark"] .tool-arrow {
  color: #5cb8ff;
}
@media (max-width: 760px) {
  .tool {
    padding: 1.1rem 2.4rem 1.1rem 1.1rem;
  }
  .tool-grid {
    gap: 0.8rem;
  }
}
/* auto 主题（跟随系统深色）——与 dark 视觉一致 */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .tool {
    background: linear-gradient(180deg, #282d33 0%, #23282d 100%);
    border-color: rgba(77, 166, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  }
  :root[data-theme="auto"] .tool:hover {
    border-color: rgba(77, 166, 255, 0.55);
    box-shadow:
      0 18px 44px rgba(0, 84, 168, 0.34),
      0 4px 14px rgba(0, 0, 0, 0.3);
  }
  :root[data-theme="auto"] .tool-glow {
    background:
      radial-gradient(130px 96px at 10% 6%, rgba(77, 166, 255, 0.2), transparent 72%),
      radial-gradient(150px 100px at 92% 98%, rgba(0, 176, 224, 0.16), transparent 72%);
  }
  :root[data-theme="auto"] .tool strong {
    color: #eaf0f4;
  }
  :root[data-theme="auto"] .tool:hover strong {
    color: #7cc7ff;
  }
  :root[data-theme="auto"] .tool-content > span {
    color: #aab6bf;
  }
  :root[data-theme="auto"] .tool-arrow {
    color: #5cb8ff;
  }
}
/* auto 主题亮色系统：图标渐变跟随基础定义即可 */
