:root {
  color-scheme: light;
  --ink: #1d336d;
  --ink-soft: #567090;
  --paper: #f7fcff;
  --paper-deep: #ebf8fe;
  --panel: #ffffff;
  --night: #ebf8fe;
  --night-soft: #dff4fd;
  --signal: #00b0f0;
  --signal-bright: #2e54a1;
  --coral: #2e54a1;
  --sun: #ef9d4e;
  --line: rgba(46, 84, 161, 0.14);
  --line-strong: rgba(46, 84, 161, 0.25);
  --sidebar-width: 294px;
  --site-header-height: 88px;
  --chapter-nav-height: 0px;
  font-family: "Aptos", "Segoe UI Variable Display", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

button { font: inherit; }

img { display: block; max-width: 100%; }

code, pre, kbd { font-family: "Cascadia Code", Consolas, monospace; }

code { overflow-wrap: anywhere; }

.manual-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--site-header-height));
}

.manual-sidebar {
  position: sticky;
  top: var(--site-header-height);
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  height: calc(100dvh - var(--site-header-height));
  padding: 26px 19px 22px;
  overflow: hidden auto;
  color: #1d336d;
  background: var(--night);
}

.manual-nav {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 0;
}

.manual-nav-link, .manual-nav-sub {
  position: relative;
  display: block;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 680;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.manual-nav-link span {
  display: inline-block;
  width: 28px;
  color: var(--signal);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.manual-nav-sub {
  margin-left: 38px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #567090;
  font-size: 12px;
  font-weight: 500;
}

.manual-nav-link:hover, .manual-nav-link:focus-visible, .manual-nav-link.is-current {
  border-color: rgba(46, 84, 161, 0.35);
  color: var(--signal-bright);
  background: rgba(0, 176, 240, 0.13);
}

.manual-nav-link.is-current::before {
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 18px;
  background: var(--signal);
  content: "";
  transform: translateY(-50%);
}

.manual-nav-sub:hover, .manual-nav-sub:focus-visible { color: var(--signal-bright); }

.manual-nav-link.is-ancestor { color: var(--signal-bright); }

.manual-nav-sub.is-current {
  border-color: rgba(46, 84, 161, 0.35);
  color: var(--signal-bright);
  background: rgba(0, 176, 240, 0.13);
}

.manual-main {
  min-width: 0;
  background: var(--paper);
}

.manual-main [id] { scroll-margin-top: calc(var(--site-header-height) + var(--chapter-nav-height) + 20px); }

.site-nav a[aria-current="page"] { color: var(--signal-bright); }

.micro-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--signal-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.manual-content { width: min(100%, 1240px); margin-inline: auto; padding: 0 clamp(24px, 4.4vw, 72px); }

.manual-section {
  padding: 34px 0;
  scroll-margin-top: 26px;
}

.manual-content > .manual-section:last-child { padding-bottom: 48px; }

.section-heading { max-width: 760px; }

.section-heading > p { margin: 20px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }

.instruction-stack { display: grid; gap: 0; margin-top: 50px; border-top: 1px solid var(--line-strong); }

.instruction-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}

.instruction-stack > .instruction-card:last-child { border-bottom: 0; padding-bottom: 0; }

.step-badge {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid #2e54a1;
  border-radius: 50%;
  color: #2e54a1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 760;
}

.instruction-card h3, .guide-heading h3 { margin: 0; font-size: 22px; line-height: 1.32; }

.instruction-card p, .guide-heading > p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }

.instruction-card code, .settings-table code, .feature-card code { padding: 2px 4px; border-radius: 3px; color: #2e54a1; background: rgba(0, 176, 240, 0.12); font-size: 0.88em; }

.finish-action {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 15px;
  padding-bottom: 3px;
  border-bottom: 1px solid #2e54a1;
  color: #2e54a1;
  font-size: 14px;
  font-weight: 750;
}

.finish-action:hover, .finish-action:focus-visible { color: var(--coral); border-color: var(--coral); }

.callout {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  margin-top: 42px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.callout-warning { border-color: rgba(239, 157, 78, 0.37); background: rgba(239, 157, 78, 0.12); }

.callout-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: #57350e; background: var(--sun); font-family: Georgia, serif; font-weight: 800; line-height: 1; }

.callout strong { font-size: 15px; }

.callout p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }

.deepseek-guide, .connection-guide {
  margin-top: 54px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.deepseek-guide { border-color: rgba(0, 176, 240, 0.34); background: #ebf8fe; }

.micro-label { margin-bottom: 10px; color: #168273; font-size: 14px; }

.detailed-steps { display: grid; gap: 22px; margin: 31px 0 0; padding: 0; list-style: none; }

.detailed-steps h4 { margin: 0; font-size: 16px; }

.detailed-steps p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }

.detailed-steps a { color: #2e54a1; font-weight: 720; text-decoration: underline; text-decoration-color: rgba(46, 84, 161, 0.3); text-underline-offset: 3px; }

.detailed-steps a:hover, .detailed-steps a:focus-visible { color: var(--coral); }

.connection-guide { margin-top: 20px; }

.settings-table-wrap { margin-top: 29px; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }

.settings-table { width: 100%; min-width: 700px; border-collapse: collapse; background: #fff; font-size: 13px; }

.settings-table th, .settings-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

.settings-table th { color: #2e54a1; background: #ebf8fe; font-size: 15px; }

.settings-table caption { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; font-size: 15px; font-weight: 760; text-align: left; }

.settings-table td { color: var(--ink-soft); }

.settings-table tr:last-child td { border-bottom: 0; }
.settings-table tbody tr { transition: background-color 140ms ease; }

.settings-table tbody tr:hover { background: rgba(0, 176, 240, 0.16); box-shadow: inset 3px 0 0 var(--signal); }


.settings-table td:first-child { width: 120px; color: var(--ink); font-weight: 700; }

.settings-table strong { color: var(--ink); }

.example-workflow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
  padding: 10px 0;
}

.section-heading h3#examples-title { margin-bottom: 0; }

.example-workflow + .interface-shot { margin-top: 24px; }

.workflow-item { position: relative; z-index: 1; padding-top: 10px; }

.workflow-item > span { display: grid; width: 28px; height: 28px; place-items: center; margin-bottom: 15px; border: 1px solid #2e54a1; border-radius: 50%; color: #2e54a1; background: var(--paper); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; font-weight: 750; }

.workflow-item strong { font-size: 15px; }

.workflow-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }

.interface-shot { margin: 50px 0 47px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: #ebf8fe; box-shadow: 16px 18px 0 rgba(46, 84, 161, 0.09); }

.interface-shot img { width: 100%; aspect-ratio: 16 / 8.6; object-fit: cover; object-position: center top; }

.interface-shot.is-full { box-shadow: none; }

.interface-shot.is-full img { aspect-ratio: auto; object-fit: contain; }

.connection-shot { margin: 26px 0 8px; box-shadow: none; }

.connection-shot img { aspect-ratio: auto; object-fit: contain; }

.download-sentence { margin: 10px 0 0 !important; font-size: 16px !important; }

.download-sentence a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 2px solid #2e54a1;
  color: #2e54a1;
  font-weight: 760;
}

.download-sentence a:hover, .download-sentence a:focus-visible { border-color: var(--coral); color: var(--coral); }

.feature-shot { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: #eef7fd; }

.feature-shot img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; }

.feature-shot.is-full img { max-height: none; object-fit: contain; }

.feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 14px;
  align-items: start;
  margin: 20px 0 0;
}

.feature-pair .feature-shot { margin: 0; }

@media (max-width: 760px) {
  .feature-pair { grid-template-columns: 1fr; gap: 16px; }
}

.feature-guide { display: grid; gap: 18px; }

.feature-card { padding: 29px 31px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.58); }

.feature-heading { display: flex; align-items: baseline; gap: 13px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }

.feature-heading h3 { margin: 0; font-size: 20px; }

.feature-card ul, .feature-card ol { display: grid; gap: 10px; margin: 20px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 14px; }

.feature-card li strong { color: var(--ink); }

.feature-card kbd { display: inline-block; min-width: 22px; padding: 1px 5px; border: 1px solid rgba(46, 84, 161, 0.22); border-bottom-width: 2px; border-radius: 3px; color: #2e54a1; background: #fff; font-size: 11px; text-align: center; }

.inline-icon { width: 1.19em; height: 1em; margin: 0 0.15em; vertical-align: -0.12em; }

.privacy-guide { margin-top: 46px; }

.feature-card ol.card-steps { display: grid; gap: 20px; margin: 22px 0 0; padding-left: 0; list-style: none; }

.card-steps h4 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.45; }

.card-steps p { margin: 5px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

.finish-action { margin-top: 41px; color: var(--signal-bright); border-color: var(--signal); }

@media (max-width: 1120px) {
  :root { --sidebar-width: 254px; }

  .manual-content { padding-right: 5vw; padding-left: 5vw; }
}

@media (max-width: 840px) {
  .manual-layout { display: block; }

  .manual-sidebar { position: static; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; align-items: center; width: 100%; height: auto; min-height: 65px; padding: 11px 16px; overflow: visible; background: var(--night); }

  .manual-nav { display: flex; gap: 5px; margin: 0 14px; overflow-x: auto; scrollbar-width: none; }

  .manual-nav::-webkit-scrollbar { display: none; }

  .manual-nav-link, .manual-nav-sub { flex: 0 0 auto; margin: 0; padding: 7px 8px; font-size: 12px; white-space: nowrap; }

  .manual-nav-link span, .manual-nav-sub { display: none; }

  .manual-nav-link.is-current::before { top: auto; bottom: -5px; left: 50%; width: 18px; height: 2px; transform: translateX(-50%); }

  .example-workflow { grid-template-columns: 1fr 1fr; }

  .workflow-item { padding-top: 0; }

  .workflow-item > span { margin-bottom: 9px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }

  .manual-sidebar { grid-template-columns: auto 1fr; }

  .manual-nav { margin-right: 0; }

  .section-heading > p { font-size: 15px; }

  .manual-content { padding-right: 22px; padding-left: 22px; }

  .manual-section { padding-top: 40px; padding-bottom: 40px; }

  .instruction-card { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }

  .instruction-card h3, .guide-heading h3 { font-size: 19px; }

  .deepseek-guide, .connection-guide, .feature-card { padding: 21px; }

  .example-workflow { grid-template-columns: 1fr; }

  .interface-shot { margin-top: 35px; }

  .interface-shot img { aspect-ratio: 1.45 / 1; }

  .feature-card ul, .feature-card ol { padding-left: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

.quickstart-list { display: grid; gap: 0; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line-strong); list-style: none; }

.quickstart-list > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }

.quickstart-list > li:last-child { border-bottom: 0; padding-bottom: 0; }

.qs-num {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid #2e54a1;
  border-radius: 50%;
  color: #2e54a1;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  font-weight: 760;
}

.quickstart-list h3 { margin: 0; font-size: 18px; line-height: 1.4; }

/* 正文与分隔线同宽：排满整行，超出才换行 */
.quickstart-list p { max-width: none; margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }

.quickstart-list a { color: #2e54a1; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(46, 84, 161, 0.3); text-underline-offset: 3px; }

.quickstart-list a:hover, .quickstart-list a:focus-visible { color: var(--coral); }

.req-card { margin-top: 38px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

.req-card .micro-label { margin: 0 0 15px; }

.req-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }

.req-grid dt { color: #2e54a1; font-size: 13px; font-weight: 760; letter-spacing: 0.06em; }

.req-grid dd { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.62; }

.prompt-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }

.prompt-list li { padding: 11px 14px; border-left: 3px solid var(--signal); background: rgba(0, 176, 240, 0.07); color: var(--ink-soft); font-size: 14px; }

.prompt-list strong { color: var(--ink); }

.faq-table td:first-child { width: 190px; }

.faq-table code { white-space: nowrap; }

.error-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 176, 240, 0.34);
  border-radius: 6px;
  background: rgba(0, 176, 240, 0.09);
}

.error-help strong { font-size: 15px; }

.error-help p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }

.error-contact { margin-top: 0 !important; white-space: nowrap; }

button.finish-action { border: 0; border-bottom: 1px solid #2e54a1; background: transparent; cursor: pointer; }

@media (max-width: 960px) {
  .req-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .quickstart-list > li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }

  .req-grid { grid-template-columns: 1fr; }

  .settings-table { min-width: 0; }

  .settings-table thead { display: none; }

  .settings-table, .settings-table caption, .settings-table tbody, .settings-table tr, .settings-table td { display: block; width: 100%; }

  .settings-table tr { padding: 9px 0; border-bottom: 1px solid var(--line); }

  .settings-table td { padding: 6px 16px; border: 0; }

  .settings-table td::before { display: block; margin-bottom: 2px; color: #2e54a1; font-size: 11px; font-weight: 750; content: attr(data-label); }

  .settings-table td:first-child { width: auto; font-size: 14px; }

  .settings-table td:first-child::before { display: none; }

  .faq-table td:first-child { width: auto; }
}

@media (min-width: 1400px) {
  .connection-guide { padding: 24px; }

  .connection-guide .settings-table { min-width: 0; table-layout: fixed; }

  .connection-guide .settings-table th, .connection-guide .settings-table td { padding: 13px 12px; }

  .connection-guide .settings-table th:first-child, .connection-guide .settings-table td:first-child { width: 108px; }
}

@media print {
  .site-header, .manual-sidebar, .contact-modal { display: none !important; }

  .manual-layout, .manual-content { display: block; width: auto; padding: 0; }

  .manual-main { background: #fff; }

  .manual-section { padding: 18px 0; border-bottom: 1px solid #ddd; break-inside: avoid; }

  a { color: #1d336d; text-decoration: none; }
}

@media (max-width: 900px) {
  .manual-sidebar { height: auto; max-height: none; }
}
