@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap");

:root {
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #17191b;
  background: #f3f2ed;
  font-synthesis: none;
  --ink: #101315;
  --paper: #f3f2ed;
  --surface: #fbfaf6;
  --muted: #656a6d;
  --line: #d8d6ce;
  --lime: #c8ff2c;
  --blue-black: #071015;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.manual-header {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  width: min(1320px, calc(100% - 32px));
  height: 64px;
  padding: 0 8px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: #f7f8f5;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(15, 21, 25, .72);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; color: var(--lime); background: #050607; font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 12px; font-weight: 600; }
.nav-links a { position: relative; padding: 22px 0; color: #b7bec2; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--lime); }
.header-download { height: 38px; padding: 0 17px; display: inline-flex; align-items: center; gap: 8px; color: #101315; background: var(--lime); border-radius: 999px; font-size: 12px; font-weight: 800; }
.header-download i { font-size: 16px; }
.menu-button { display: none; padding: 8px; color: white; border: 0; background: transparent; }
.menu-button i { font-size: 25px; }

.manual-hero {
  min-height: 760px;
  padding: 145px max(7vw, 42px) 80px;
  display: grid;
  grid-template-columns: minmax(440px, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  gap: 7vw;
  color: #f7f8f4;
  background: var(--blue-black);
}
.manual-hero-copy { max-width: 690px; }
.eyebrow { margin: 0 0 20px; font: 700 11px/1.3 "Manrope", sans-serif; letter-spacing: .27em; color: #9eabb1; }
.manual-hero h1 { margin: 0; font-size: clamp(60px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.065em; }
.hero-lead { max-width: 620px; margin: 30px 0 0; color: #abb5ba; font-size: 16px; line-height: 1.9; }
.version-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.version-row span { padding: 8px 11px; border: 1px solid #2c363b; border-radius: 4px; color: #ced5d8; font-size: 11px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.primary-button, .secondary-button { min-height: 52px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 4px; font-size: 13px; font-weight: 800; }
.primary-button { color: #0b0f10; background: var(--lime); }
.secondary-button { border: 1px solid #3a4449; color: #edf1ef; }
.manual-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.manual-hero-visual::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(200, 255, 44, .12); filter: blur(80px); }
.manual-hero-visual img { position: relative; width: min(100%, 690px); filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .4)); }

.quick-start { padding: 105px max(7vw, 42px); background: #fff; border-bottom: 1px solid var(--line); }
.quick-start-head { max-width: 1320px; margin: 0 auto 52px; display: flex; justify-content: space-between; align-items: end; }
.quick-start-head .eyebrow { margin: 0; color: #6d777b; }
.quick-start h2 { margin: 0; font-size: clamp(42px, 4vw, 66px); letter-spacing: -.05em; }
.quick-steps { max-width: 1320px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--ink); }
.quick-steps li { min-width: 0; padding: 28px 24px 12px 0; display: grid; grid-template-columns: 44px 1fr; gap: 14px; border-right: 1px solid var(--line); }
.quick-steps li + li { padding-left: 24px; }
.quick-steps li:last-child { border-right: 0; }
.quick-steps > li > span { font: 700 11px/1.3 "Manrope", sans-serif; color: #7a8387; }
.quick-steps strong { display: block; margin-bottom: 9px; font-size: 15px; }
.quick-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.important, .danger { max-width: 1320px; margin: 36px auto 0; padding: 20px 22px; color: #263014; background: #efffc0; border-left: 3px solid #8fb900; font-size: 13px; line-height: 1.75; }
.danger { color: #411b17; background: #fff0ed; border-color: #de5748; }
.reading-notes { max-width: 1320px; margin: 24px auto 0; padding-top: 22px; display: grid; grid-template-columns: 180px 1fr; border-top: 1px solid var(--line); }
.reading-notes strong { font-size: 13px; }
.reading-notes ul { margin: 0; }

.manual-layout { width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 100px 0 140px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 8vw; align-items: start; }
.manual-toc { position: sticky; top: 106px; }
.toc-toggle { display: none; }
.toc-links { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.toc-links a { padding: 10px 0; display: grid; grid-template-columns: 32px 1fr; gap: 10px; color: #73787a; border-bottom: 1px solid #dedcd5; font-size: 12px; line-height: 1.45; transition: color .18s ease, padding-left .18s ease; }
.toc-links a span { font: 700 10px/1.7 "Manrope", sans-serif; color: #9a9d9f; }
.toc-links a:hover, .toc-links a.is-active { padding-left: 7px; color: var(--ink); }
.toc-links a.is-active { font-weight: 700; }
.toc-links a.is-active span { color: #6f8d14; }

.manual-content { min-width: 0; }
.manual-section { scroll-margin-top: 105px; padding: 0 0 105px; }
.manual-section + .manual-section { padding-top: 95px; border-top: 1px solid var(--line); }
.section-number { margin-bottom: 20px; font: 800 12px/1 "Manrope", sans-serif; letter-spacing: .15em; color: #7a981c; }
.manual-section h2 { margin: 0 0 28px; font-size: clamp(38px, 4.2vw, 68px); line-height: 1.08; letter-spacing: -.055em; }
.manual-section h3 { margin: 48px 0 15px; font-size: 22px; line-height: 1.35; letter-spacing: -.02em; }
.manual-section p, .manual-section li { color: #52585b; font-size: 15px; line-height: 1.9; }
.manual-section p { max-width: 860px; margin: 0 0 18px; }
.manual-section ul, .manual-section ol { max-width: 880px; margin: 0 0 20px; padding-left: 25px; }
.manual-section li + li { margin-top: 8px; }
.manual-section code { padding: 2px 6px; color: #263014; background: #e8eccf; border-radius: 3px; font: 500 13px/1.6 Consolas, monospace; overflow-wrap: anywhere; }
.api-key-guide { margin: 18px 0 22px; padding: 20px 22px; background: #edf1e8; border: 1px solid #d7ddce; border-radius: 6px; }
.api-key-guide > strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.manual-section .api-key-guide ol { margin: 0; padding-left: 20px; }
.api-key-guide a { color: #658500; font-weight: 700; text-decoration: underline; text-decoration-color: #a7c24d; text-underline-offset: 3px; }
.api-key-guide a:hover { color: #3f5600; }
.manual-section .free-quota-note { max-width: none; margin: 16px 0 0; padding: 13px 15px; color: #374313; background: #e8f7b9; border-left: 3px solid #90b51d; border-radius: 3px; font-size: 13px; line-height: 1.75; }
.layout-figure { margin: 45px 0 10px; padding: 48px; background: var(--blue-black); border-radius: 8px; }
.layout-figure img { width: min(100%, 760px); margin: 0 auto; }
.layout-figure figcaption { margin-top: 22px; color: #8e999e; text-align: center; font-size: 11px; letter-spacing: .1em; }
.table-wrap { width: 100%; margin: 20px 0 30px; overflow-x: auto; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 13px; line-height: 1.6; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #565d60; background: #e8e7e1; font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
td:first-child { color: #1c2022; font-weight: 650; }
tbody tr:hover { background: #f1f5e7; }
.troubleshooting-table table { min-width: 720px; }
.troubleshooting-table td:first-child { width: 30%; }
.support-links { margin: 18px 0 35px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.support-links a { min-height: 70px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.support-links a:nth-child(odd) { border-right: 1px solid var(--line); }
.support-links a:hover { background: #e9eddd; }
.support-links span { font-size: 13px; font-weight: 700; }
.support-links i { font-size: 18px; }

.manual-footer { min-height: 150px; padding: 38px max(6vw, 40px); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: white; background: #101315; }
.manual-footer p { margin: 0; text-align: center; color: #7f898e; font-size: 11px; }
.manual-footer > a:last-child { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: #bfc7ca; font-size: 12px; }

@media (max-width: 1050px) {
  .manual-hero { grid-template-columns: 1fr; padding-top: 140px; }
  .manual-hero-copy { max-width: 780px; }
  .manual-hero-visual img { width: min(78vw, 660px); }
  .quick-steps { grid-template-columns: 1fr 1fr; }
  .quick-steps li:nth-child(2) { border-right: 0; }
  .quick-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .manual-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 5vw; }
}

@media (max-width: 800px) {
  .manual-header { top: 8px; width: calc(100% - 24px); padding: 0 10px 0 16px; }
  .header-download { display: none; }
  .menu-button { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; padding: 22px; display: none; flex-direction: column; align-items: stretch; gap: 0; color: #101315; background: rgba(250, 250, 247, .97); border: 1px solid #deded8; border-radius: 18px; box-shadow: 0 18px 55px rgba(0, 0, 0, .16); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 4px; color: #555b5e; }
  .nav-links a.is-active::after { display: none; }
  .manual-hero { min-height: auto; padding: 125px 20px 70px; gap: 45px; }
  .manual-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-lead { font-size: 14px; }
  .manual-hero-visual img { width: 100%; }
  .quick-start { padding: 75px 20px; }
  .quick-start-head { display: block; }
  .quick-start-head .eyebrow { margin-bottom: 14px; }
  .quick-steps { grid-template-columns: 1fr; }
  .quick-steps li, .quick-steps li + li { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .quick-steps li:first-child { border-top: 0; }
  .reading-notes { grid-template-columns: 1fr; gap: 12px; }
  .manual-layout { width: calc(100% - 40px); padding: 55px 0 90px; display: block; }
  .manual-toc { z-index: 30; top: 82px; margin-bottom: 55px; padding: 0; background: rgba(243, 242, 237, .96); backdrop-filter: blur(18px); }
  .toc-toggle { width: 100%; height: 52px; padding: 0 2px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 800; }
  .toc-toggle i { transition: rotate .2s ease; }
  .manual-toc.is-open .toc-toggle i { rotate: 180deg; }
  .toc-links { display: none; max-height: calc(100vh - 160px); overflow-y: auto; background: var(--paper); }
  .manual-toc.is-open .toc-links { display: flex; }
  .toc-links a { padding-block: 12px; }
  .manual-section { scroll-margin-top: 150px; padding-bottom: 75px; }
  .manual-section + .manual-section { padding-top: 70px; }
  .manual-section h2 { font-size: 42px; }
  .manual-section h3 { margin-top: 38px; font-size: 20px; }
  .manual-section p, .manual-section li { font-size: 14px; line-height: 1.85; }
  .layout-figure { padding: 25px 16px; }
  th, td { padding: 13px 14px; }
  .support-links { grid-template-columns: 1fr; }
  .support-links a:nth-child(odd) { border-right: 0; }
  .manual-footer { grid-template-columns: 1fr; gap: 25px; text-align: center; }
  .manual-footer .brand, .manual-footer > a:last-child { justify-self: center; }
}

@media (max-width: 480px) {
  .manual-header .brand { font-size: 11px; }
  .manual-hero h1 { font-size: 49px; }
  .hero-actions { display: grid; }
  .primary-button, .secondary-button { width: 100%; }
  .version-row span { font-size: 10px; }
  .quick-start h2 { font-size: 40px; }
  .manual-section h2 { font-size: 37px; }
  .manual-layout { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
