:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #515154;
  --subtle: #636367;
  --paper: #fff;
  --wash: #f5f5f7;
  --border: #dedee3;
  --blue: #0066cc;
  --blue-hover: #0054ab;
  --chart-primary: #2264d1;
  --chart-secondary: #7556b1;
  --chart-point: #6490d8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, pre { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip { position: fixed; top: .75rem; left: .75rem; z-index: 4; transform: translateY(-160%); background: white; padding: .5rem 1rem; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: .55rem;
  background: linear-gradient(#1d355009, transparent);
  pointer-events: none;
}
@supports ((backdrop-filter: blur(1rem)) or (-webkit-backdrop-filter: blur(1rem))) {
  .site-header {
    background: #ffffffdc;
    -webkit-backdrop-filter: saturate(155%) blur(20px);
    backdrop-filter: saturate(155%) blur(20px);
  }
}
.header-inner { min-height: 3.75rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; width: fit-content; gap: .55rem; align-items: center; text-decoration: none; font-size: 1.16rem; font-weight: 720; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { width: 29px; height: 29px; border-radius: 8px; background: linear-gradient(155deg, #4489ed, #0758bd); display: inline-flex; gap: 2px; align-items: end; justify-content: center; padding-bottom: 7px; }
.brand-mark i { width: 3px; border-radius: 1px; background: #fff; height: 6px; }
.brand-mark i:nth-child(2) { height: 10px; }
.brand-mark i:nth-child(3) { height: 15px; }
.site-header nav, .site-footer nav { display: flex; gap: clamp(1rem, 3vw, 2.4rem); font-size: .9rem; }
.site-header nav a, .site-footer nav a { text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: .25em; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: clamp(.55rem, 1.75vw, 1.25rem); }
.header-project, .language-switch { padding-block: .65rem; font-size: .9rem; font-weight: 580; text-decoration: none; white-space: nowrap; }
.language-switch { color: var(--blue); }
.header-project:hover, .language-switch:hover { text-decoration: underline; text-underline-offset: .25em; }

.hero {
  background:
    radial-gradient(ellipse at 50% 87%, #dbeaff 0%, #edf3fa 34%, transparent 69%),
    linear-gradient(#fff 25%, #f7f9fc);
}
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: clamp(2.1rem, 4.35vw, 3.25rem); padding-block: clamp(3.5rem, 5.9vw, 5rem) clamp(3.5rem, 7vw, 6.5rem); }
.hero-copy { width: 100%; text-align: center; }
.hero-label { margin-bottom: .85rem; color: var(--blue); font-size: 1rem; font-weight: 690; letter-spacing: .01em; }
h1 { font-size: clamp(2.85rem, 7vw, 5.75rem); font-weight: 740; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
:lang(zh-CN) h1 { letter-spacing: -.035em; line-height: 1.13; }
h1 em { font-style: normal; color: #155ebf; }
@supports (background-clip: text) {
  h1 em { background: linear-gradient(110deg, #145cad, #3e50c2 75%); background-clip: text; color: transparent; }
}
.hero-intro { margin: 1.1rem auto 0; max-width: 38rem; color: var(--muted); font-size: clamp(1.05rem, 1.9vw, 1.35rem); line-height: 1.62; text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; gap: .75rem; margin-top: 1.65rem; flex-wrap: wrap; }
.button { display: inline-block; text-decoration: none; border: 1px solid transparent; padding: .59rem 1.28rem; border-radius: 999px; font-size: 1rem; font-weight: 600; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-hover); }
.button-outline { color: var(--blue); border-color: var(--blue); }
.button-outline:hover { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }
.button-primary:active, .button-outline:active { color: #fff; background: #00458d; border-color: #00458d; }
.requirements { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 0; gap: .3rem .85rem; margin-top: 1.3rem; font-size: .875rem; color: var(--subtle); }
.requirements li + li::before { content: "·"; padding-right: .85rem; }

.demo {
  width: min(100%, 910px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: clamp(1.1rem, 3vw, 2rem);
  background: #fff;
  box-shadow: 0 30px 75px -24px #24589a44, 0 5px 16px #2c589119, 0 0 0 1px #6e93bf26;
}
.demo-chrome { min-height: 3.15rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem clamp(.85rem, 3vw, 1.65rem); background: #fafbfd; border-bottom: 1px solid #e6eaf0; color: #434a57; font-size: .875rem; font-weight: 680; }
.example-label { color: #4a5870; background: #eff3f9; padding: .17rem .55rem; border-radius: 999px; white-space: nowrap; font-size: .8125rem; font-weight: 560; }
.demo-body { padding: clamp(.85rem, 3vw, 1.7rem); }
.demo-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 25rem); margin-bottom: 1rem; padding: .25rem; background: #edf1f7; border-radius: 12px; }
.demo-tabs::before { content: ""; position: absolute; inset: .25rem auto .25rem .25rem; width: calc((100% - .5rem) / 3); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px #2647742e; pointer-events: none; }
.demo-tabs[data-active="line"]::before { transform: translateX(100%); }
.demo-tabs[data-active="bar"]::before { transform: translateX(200%); }
.demo-tab { position: relative; border: 0; color: #45536b; background: transparent; min-height: 2.6rem; padding: .35rem .45rem; border-radius: 9px; font-size: .875rem; font-weight: 620; line-height: 1.3; }
.demo-tab:hover { color: #174783; }
.demo-tab:active { background: #d9e7fa; }
.demo-tab[aria-pressed="true"] { color: #164a91; }
.chart-frame { background: white; border: 1px solid #e1e7f0; border-radius: 16px; padding: clamp(.85rem, 2.5vw, 1.5rem) clamp(.6rem, 2vw, 1.35rem) .85rem; }
.chart-head { display: flex; justify-content: space-between; gap: .55rem; align-items: baseline; padding-inline: .3rem; }
.chart-head h2 { font-size: clamp(1.07rem, 1.9vw, 1.45rem); font-weight: 690; letter-spacing: -.022em; }
.chart-head span { font-size: .875rem; color: #566176; text-align: right; }
#chart { display: block; width: 100%; height: clamp(186px, 25vw, 300px); margin-block: .6rem .45rem; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.35rem; min-height: 1.3rem; color: #475368; font-size: .8125rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--chart-primary); }
.chart-legend .legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chart-point); }
.chart-legend .legend-alt { background: var(--chart-secondary); }
.chart-legend .legend-line.legend-alt { background: repeating-linear-gradient(90deg, var(--chart-secondary) 0 5px, transparent 5px 8px); }
.chart-legend .legend-box { width: 10px; height: 10px; }
.prompt { display: flex; align-items: center; gap: .65rem; padding-top: .9rem; color: #46536a; }
.prompt p { font-size: .875rem; flex: 1; }
.prompt-symbol { color: var(--blue); font: 1.5rem/1 var(--mono); }
.copy { white-space: nowrap; color: var(--blue-hover); border: 1px solid transparent; background: #edf3fb; border-radius: 8px; padding: .35rem .65rem; font-size: .875rem; font-weight: 580; }
.copy:hover { background: #deeafa; }
.copy:active { background: #d1e3fa; }
@media (prefers-reduced-motion: no-preference) {
  .demo-tabs::before { transition: transform 165ms cubic-bezier(.2, .65, .25, 1); }
  .button, .copy { transition: transform 125ms ease-out; }
  .button:active, .copy:active { transform: scale(.97); transition-duration: 55ms; }
}

.section { padding-block: clamp(4.5rem, 8.6vw, 8rem); }
.section-head h2 { margin-bottom: .8rem; font-size: clamp(2.05rem, 4.35vw, 3.65rem); font-weight: 720; letter-spacing: -.045em; text-wrap: balance; }
:lang(zh-CN) .section-head h2 { letter-spacing: -.03em; }
.section-head > p { color: var(--muted); max-width: 34rem; font-size: clamp(1.05rem, 1.65vw, 1.22rem); }
.workflow .section-head, .features .section-head { text-align: center; }
.workflow .section-head > p, .features .section-head > p { margin-inline: auto; }
.flow { list-style: none; padding: 0; margin-top: clamp(2.3rem, 5vw, 3.8rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.3rem, 3.5vw, 3.2rem); }
.flow li { padding: 1.4rem .1rem 0; border-top: 1px solid var(--border); }
h3 { font-size: clamp(1.18rem, 2vw, 1.48rem); font-weight: 690; letter-spacing: -.025em; margin-bottom: .5rem; }
.flow p, .feature-list p, .install-steps p, .faq p { color: var(--muted); }
.features { background: var(--wash); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; margin-top: clamp(1.85rem, 4vw, 3rem); }
.feature-list article { min-width: 0; background: #fff; padding: clamp(1.35rem, 3.3vw, 2.6rem); border-radius: clamp(1.15rem, 3vw, 1.75rem); }
.feature-list article:nth-child(2) { background: linear-gradient(150deg, #fff 44%, #edf2ff); }
.feature-list article:nth-child(3) { background: linear-gradient(150deg, #fff 44%, #eaf5ff); }
.feature-list p { max-width: 30rem; }
.text-link { display: inline-block; margin-top: .9rem; color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .21em; font-weight: 620; }
.text-link:hover, .faq p a:hover, .install-steps p a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }

.install-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.4rem, 7vw, 6.5rem); }
.install-steps { padding-left: 1.68rem; }
.install-steps li { padding-left: .35rem; }
.install-steps li::marker { color: var(--blue); font-weight: 740; }
.install-steps li + li { margin-top: 1.6rem; border-top: 1px solid var(--border); padding-top: 1.6rem; }
.install-steps p { margin-block: .6rem; }
.install-steps p a, .faq p a { color: var(--blue); }
.small-link { font-size: .9rem; margin-top: .65rem; }
.codebox { position: relative; background: #f5f7fa; color: #263248; border: 1px solid #e7ebf1; border-radius: 12px; padding: .78rem 5.2rem .78rem .95rem; margin-top: .65rem; }
pre { overflow: auto; }
code { font: .9em/1.65 var(--mono); overflow-wrap: anywhere; }
.codebox pre { font-size: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.codebox .copy { position: absolute; right: .5rem; top: .48rem; background: #fff; border-color: #dbe2ed; }
.codebox .copy:hover { background: #e8f0fc; }

.faq { background: var(--wash); }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; font-weight: 680; padding-block: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font: 1.25rem/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; }
.site-footer { background: var(--wash); color: var(--muted); }
.footer-inner { min-height: 88px; display: flex; align-items: center; gap: 1rem 2rem; border-top: 1px solid var(--border); }
.footer-inner .brand { color: var(--ink); }
.footer-inner p { flex: 1; font-size: .875rem; }

@media (min-width: 741px) {
  h1 br { display: none; }
}
@media (max-width: 870px) {
  .wrap { width: calc(100% - 56px); }
  .header-inner { gap: .9rem; }
  .site-header nav { gap: 1rem; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 55px; display: flex; justify-content: space-between; gap: .7rem; }
  .site-header nav a:first-child, .site-header nav a:nth-child(2) { display: none; }
  .install-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .flow { gap: 1rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 1.25rem; }
  .footer-inner nav { width: 100%; }
}
@media (max-width: 540px) {
  .site-header nav { display: none; }
  .hero-grid { padding-top: 3.2rem; }
  .feature-list, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { padding-top: 1rem; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .demo-chrome { gap: .4rem; }
  .demo-tab { padding-inline: .3rem; }
  .prompt { gap: .4rem; }
  .demo-copy { white-space: normal; max-width: 4.5rem; }
  .requirements { gap: .3rem .55rem; }
  .requirements li + li::before { padding-right: .55rem; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--border);
  }
  .site-header::after { display: none; }
}
@media (prefers-contrast: more) {
  .site-header, .chart-frame { border-color: #81818a; }
  .demo-tab[aria-pressed="true"] { outline: 1px solid currentColor; }
}
@media (forced-colors: active) {
  h1 em { color: LinkText; background: none; }
  .demo-tab[aria-pressed="true"] { outline: 1px solid Highlight; }
}
