@font-face { font-family: "CTW Geist"; src: url("./geist.woff2") format("woff2"); font-display: swap; font-weight: 400 800; }
@font-face { font-family: "CTW Noto Sans SC"; src: url("./noto-sans-sc.woff2") format("woff2"); font-display: swap; font-weight: 400 800; }
:root {
  color-scheme: dark;
  --paper: #000000;
  --surface: #1b1b1b;
  --primary: #ffffff;
  --link: #ffffff;
  --ink: #ffffff;
  --muted: #b7b7b7;
  --line: #323232;
  --content: 1184px;
  --gutter: clamp(22px, 5vw, 80px);
  --font: "CTW Geist", "CTW Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
:lang(zh-CN) { --heading-tracking: 0em; }
:lang(en) { --heading-tracking: -.035em; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }
:is(a, button, input, summary):focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
.wrap { width: min(var(--content), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: absolute; inset: 8px auto auto 10px; clip-path: inset(50%); }
.skip-link:focus { z-index: 5; clip-path: none; padding: 8px 16px; background: var(--surface); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead { position: relative; min-height: 80px; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(104px, 1fr); align-items: center; gap: clamp(18px, 2.4vw, 35px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 19px; font-weight: 680; letter-spacing: -.025em; }
.brand img { width: 52px; height: auto; border-radius: 10px; }
.site-nav { display: flex; gap: clamp(15px, 2vw, 29px); align-items: center; color: var(--muted); font-size: 14px; font-weight: 500; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.site-nav a:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: 15px; transition: transform 150ms, background-color 150ms, border-color 150ms; white-space: nowrap; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary); color: #000; }
.button-primary:hover { background: #e1e1e1; }
.button-outline { border-color: #646464; background: transparent; }
.button-outline:hover { border-color: var(--ink); }
.header-actions .button { min-height: 44px; padding: 9px 18px; font-size: 13px; }
.menu-toggle { display: none; border: 0; border-radius: 4px; background: var(--surface); color: var(--ink); padding: 10px 12px; min-height: 44px; }


.hero { background: var(--paper); }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(46px, 8vw, 115px);
  min-height: clamp(660px, calc(100svh - 81px), 850px);
  padding-block: clamp(42px, 7vh, 82px);
}
.hero-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.hero-screen { grid-column: 1; grid-row: 1; display: grid; justify-items: end; min-width: 0; padding-right: clamp(0px, 3vw, 32px); }
.hero-identity { display: flex; align-items: center; gap: 22px; }
.hero-mark { position: relative; overflow: hidden; flex: 0 0 auto; width: 116px; border-radius: 22px; }
.hero-mark img { width: 100%; }
.hero h1 { font-size: clamp(61px, 5.8vw, 86px); font-weight: 720; line-height: 1; letter-spacing: -.052em; word-spacing: .035em; white-space: nowrap; }
.hero-title { margin-top: 23px; font-size: clamp(27px, 3vw, 41px); font-weight: 570; line-height: 1.35; letter-spacing: var(--heading-tracking); }
.hero-description { max-width: 31em; margin-top: 21px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.compatibility { margin-top: 18px; color: var(--muted); font-size: 12px; }
.device { width: min(100%, clamp(234px, 20.6vw, 300px)); }
.device-surface { position: relative; }
.device img { width: 100%; }
.device-demo {
  position: absolute;
  top: 11.96%;
  left: 6.20%;
  width: 87.71%;
  aspect-ratio: 588 / 960;
  pointer-events: none;
  opacity: 0;
  mask-image: linear-gradient(to bottom, transparent, #000 1.4%, #000 96%, transparent);
}
.device-demo.is-started { opacity: 1; }
.device-demo-toggle {
  position: absolute;
  inset: 2.8% 6.2%;
  padding: 0;
  border: 0;
  border-radius: 14% / 7%;
  background: transparent;
}
.device-demo-toggle:focus-visible { outline: 2px solid #252525; outline-offset: -4px; }
.device-glint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 32%, #ffffff64 50%, transparent 68%);
    animation: ctw-mark-light 1050ms cubic-bezier(.2,.7,.25,1) 230ms 1 both;
  }
  @keyframes ctw-mark-light {
    from { transform: translateX(-120%); }
    to { transform: translateX(120%); }
  }
  .device-arrival .device-glint {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mask: url("./ctw-phone-hd.png") center / 100% 100% no-repeat;
  }
  .device-arrival .device-glint::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(124deg, transparent 39%, #ffffff37 49%, transparent 59%);
    animation: ctw-mark-light 1050ms cubic-bezier(.2,.6,.35,1) 180ms 1 both;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .device-surface { transition: transform 280ms cubic-bezier(.2,.7,.3,1); }
  .device:hover .device-surface { transform: translateY(-4px); }
}
.product-section { padding-block: 70px 78px; border-block: 1px solid var(--line); background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 46px; }
.section-heading h2, .getting-started h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 650; line-height: 1.3; letter-spacing: var(--heading-tracking); }
.section-heading p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-size: 14px; text-decoration: underline; text-underline-offset: 6px; }
.text-link:hover { text-decoration-thickness: 2px; }
.js .feature-browser { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 54px; align-items: start; }
.feature-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feature-tabs button { min-height: 60px; padding: 12px 17px; border: 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; font-size: 15px; transition: color 160ms, background-color 160ms, border-color 160ms; }
.feature-tabs button:hover { color: var(--ink); background: #232323; }
.feature-tabs button[aria-selected="true"] { border-left-color: var(--primary); background: #242424; color: var(--primary); font-weight: 600; }
.feature-panel { min-width: 0; padding-block: 15px 0; }
.feature-panel + .feature-panel { margin-top: 42px; padding-top: 36px; border-top: 1px solid var(--line); }
.js .feature-panel { grid-column: 2; grid-row: 1; min-height: 240px; margin: 0; padding: 0; border: 0; }
.feature-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: 48px; align-items: start; }
.feature-copy > :is(h3, p, a) { grid-column: 1; }
.feature-copy h3 { font-size: clamp(24px, 2.6vw, 35px); font-weight: 600; line-height: 1.35; letter-spacing: var(--heading-tracking); }
.feature-copy p { margin-top: 17px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.feature-copy ul { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; list-style: none; border-top: 1px solid #434343; color: #dedede; font-size: 14px; }
.feature-copy li { padding-block: 13px; border-bottom: 1px solid #434343; }
.feature-copy > .text-link { justify-self: start; margin-top: 10px; }
.api-view { min-width: 0; margin-top: 23px; padding: 24px; color: #f5f5f5; background: #0b0b0b; border: 1px solid #3b3b3b; border-radius: 5px; }
.api-heading { color: var(--primary); font-size: 12px; }
.api-heading:not(:first-child) { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.api-view pre { margin: 11px 0 0; overflow-x: auto; font: 14px/1.8 var(--mono); }
.api-view code { font: inherit; }
.getting-started { padding-block: 76px 78px; background: var(--paper); }
.install-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 86px; align-items: center; }
.install-layout > div > p { margin-top: 13px; color: var(--muted); font-size: 15px; }
.source-panel { min-width: 0; }
.source-panel label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 13px; }
.source-control { display: flex; gap: 8px; }
.source-control input { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #565656; border-radius: 4px; color: var(--ink); background: var(--surface); font: 14px/1.5 var(--mono); }
.source-control .button { padding-inline: 16px; font-size: 13px; }
.copy-status { min-height: 28px; padding-top: 4px; color: var(--muted); font-size: 13px; }
.install-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: install-step; list-style: none; margin: 37px 0 0; padding: 29px 0 0; border-top: 1px solid var(--line); }
.install-steps li { counter-increment: install-step; }
.install-steps li::before { content: counter(install-step); display: inline-flex; justify-content: center; align-items: center; width: 24px; height: 24px; margin-right: 9px; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: 12px; }
.install-steps strong { font-size: 15px; font-weight: 600; }
.install-steps p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.site-footer { padding-block: 45px 22px; border-top: 1px solid var(--line); }
.site-footer .brand img { width: 42px; }
.footer-top { display: flex; justify-content: space-between; gap: 35px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 26px; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.page-wrap { padding-block: 32px 88px; min-height: 60vh; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb a:hover { text-decoration: underline; }
.page-heading { margin-block: 34px 48px; }
.page-heading h1 { font-size: clamp(36px, 5vw, 62px); letter-spacing: var(--heading-tracking); font-weight: 650; line-height: 1.25; }
.page-heading > p { margin-top: 16px; color: var(--muted); }
.install-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.install-content h2 { font-size: 24px; font-weight: 600; }
.install-content > p { margin-block: 18px; color: var(--muted); }
.install-content .source-panel { margin-top: 30px; }
.install-original { max-width: 340px; padding: 6px; background: #15161a; border-radius: 12px; }
.install-original img { border-radius: 7px; }
.package-section { margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.package-section p, .package-section .button { margin-top: 16px; font-size: 14px; }
.document-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px; align-items: start; }
.document-nav { display: flex; flex-direction: column; border-block: 1px solid var(--line); padding-block: 10px; }
.document-nav a { padding: 12px 10px; color: var(--muted); font-size: 13px; }
.document-nav a:hover, .document-nav a[aria-current] { background: var(--surface); color: var(--ink); }
.cms-article { min-width: 0; overflow-wrap: anywhere; line-height: 1.85; }
.cms-article :is(p, span, div, li, h1, h2, h3, h4, h5, h6, td, th, font, a, strong, b, em, i) { font-family: var(--font) !important; }
.cms-article :is(pre, code, pre *, code *) { font-family: var(--mono) !important; }
.cms-article > :first-child { margin-top: 0; }
.cms-article p { margin-block: 13px; }
.cms-article img { max-width: 100% !important; height: auto !important; }
.cms-article a { text-decoration: underline; text-underline-offset: 4px; }
.cms-article table { display: block; max-width: 100%; overflow-x: auto; }
.cms-article pre { padding: 20px; max-width: 100%; overflow: auto; background: var(--surface); font-size: .875em; line-height: 1.7; }
.cms-prose > pre { margin: 0; padding: 0; max-width: 72ch; white-space: pre-wrap; background: none; font: inherit !important; }
.reference-table { margin-block: 18px 27px; border-collapse: collapse; font-size: .9em; }
.reference-table :is(th, td) { padding: 9px 13px; text-align: start; vertical-align: top; border: 1px solid var(--line); }
.reference-table th { background: var(--surface); }
.reference-table code { overflow-wrap: anywhere; }
.guide-steps { list-style-position: outside; padding-inline-start: 1.6em; }
.guide-steps li { margin-block: 0 32px; padding-inline-start: .35em; }
.guide-steps img { width: min(100%, 300px); margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; margin-top: 24px; }
.contact-grid figure { padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 6px; }
.contact-grid img { width: min(100%, 240px); margin: 12px auto; }
.contact-grid strong { display: block; }
.cms-article :is(h2,h3) { margin-block: 25px 12px; font-weight: 650; line-height: 1.4; letter-spacing: var(--heading-tracking); }
.doc-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 850px; }
.doc-index a { display: block; padding-block: 22px; border-top: 1px solid var(--line); }
.doc-index a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.doc-index strong { font-size: 20px; font-weight: 600; }
.doc-index span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.purchase-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 32px; border-block: 1px solid var(--line); }
.purchase-panel h2 { font-size: 25px; }
.purchase-panel p { margin-top: 12px; color: var(--muted); }
.contact-image { width: 100%; max-width: 730px; margin-top: 26px; }
.article-note { padding: 18px 20px; background: var(--surface); border-radius: 8px; margin-bottom: 25px; }
.article-note p + p { margin-top: 12px; }


.ctw-guide main, .ctw-article main {
  color-scheme: light;
  --paper: #fbfbfb;
  --surface: #eaebed;
  --ink: #1b1b1b;
  --muted: #53555c;
  --line: #dbdcdf;
  --link: #1b1b1b;
  color: var(--ink);
  background: var(--paper);
}
.ctw-guide main :focus-visible, .ctw-article main :focus-visible { outline-color: var(--link); }
.cms-article a { color: var(--link); }

@media (max-width: 1100px) {
  .js .feature-browser { grid-template-columns: 160px minmax(0, 1fr); gap: 30px; }
  .feature-copy { column-gap: 27px; }
  .install-layout { gap: 46px; }
  .install-page-grid { gap: 65px; }
}
@media (max-width: 940px) {
  .js .feature-browser { display: block; }
  .feature-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 28px; }
  .feature-tabs button { border-left: 0; border-bottom: 2px solid var(--line); padding-inline: 6px; text-align: center; }
  .feature-tabs button[aria-selected="true"] { border-bottom-color: var(--primary); }
  .js .feature-panel { min-height: 0; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .masthead { min-height: 73px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; }
  .brand img { width: 45px; }
  .site-nav { order: 3; width: 100%; padding-bottom: 14px; flex-wrap: wrap; gap: 0 21px; }
  .js .site-nav { display: none; position: absolute; z-index: 3; top: 100%; left: 0; right: 0; background: var(--paper); padding: 10px 15px; border: 1px solid var(--line); }
  .js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .site-nav a + a { border-top: 1px solid var(--line); }
  .hero-shell { gap: 34px; min-height: 620px; padding-block: 52px; }
  .hero-identity { gap: 14px; }
  .hero-mark { width: clamp(66px, 10vw, 86px); border-radius: 16px; }
  .hero h1 { font-size: clamp(50px, 7.5vw, 66px); }
  .hero-title { margin-top: 17px; font-size: 27px; }
  .hero-description { margin-top: 16px; font-size: 14px; }
  .document-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 650px) {
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 40px; }
  .header-actions { gap: 8px; }
  .header-actions .button { padding-inline: 12px; font-size: 12px; }
  .menu-toggle { padding-inline: 10px; font-size: 14px; }
  .hero-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 34px; padding-block: 36px 35px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-screen { grid-column: 1; grid-row: 2; justify-items: center; padding: 0; }
  .hero-mark { width: 76px; }
  .hero h1 { font-size: clamp(42px, 11vw, 59px); }
  .hero-title { margin-top: 17px; font-size: 25px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 9px; margin-top: 23px; }
  .hero-actions .button { flex: 1; padding-inline: 11px; font-size: 13px; }
  .compatibility { margin-top: 14px; font-size: 11px; }
  .device { width: min(64vw, 240px); }
  .product-section { padding-block: 48px 54px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
  .section-heading p { font-size: 14px; }
  .feature-tabs { margin-bottom: 24px; }
  .feature-tabs button { min-height: 54px; font-size: 12px; }
  .js .feature-panel { min-height: 0; }
  .feature-copy { display: block; }
  .feature-copy p { font-size: 14px; }
  .feature-copy ul { margin-top: 17px; font-size: 13px; }
  .api-view { padding: 18px; }
  .api-view pre { font-size: 12px; }
  .getting-started { padding-block: 47px 50px; }
  .install-layout, .install-page-grid, .document-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .install-steps { grid-template-columns: minmax(0, 1fr); gap: 23px; margin-top: 23px; padding-top: 24px; }
  .install-steps p { padding-left: 34px; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px 23px; }
  .page-wrap { padding-bottom: 55px; }
  .page-heading { margin-block: 28px 34px; }
  .install-original { max-width: 300px; }
  .document-nav { flex-direction: row; flex-wrap: wrap; }
  .document-nav a { padding: 9px 12px; }
  .doc-index { grid-template-columns: minmax(0, 1fr); }
  .purchase-panel { align-items: flex-start; flex-direction: column; }
  .cms-article { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
