:root {
  color-scheme: light;
  --bg: #fff4dd;
  --surface: #ffffff;
  --ink: #12151d;
  --muted: #8a91a1;
  --line: #ece4f5;
  --primary: #ff8a00;
  --primary-dark: #d96900;
  --accent: #5d7cf8;
  --mint: #37d987;
  --violet: #7c6bff;
  --panel: #f8fbff;
  --shadow: 0 24px 70px rgba(255, 138, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9) 0 9%, transparent 24%),
    linear-gradient(180deg, #ffe8bd 0%, #f5fbff 42%, #fffaf1 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(255, 178, 80, 0.24);
  background: rgba(255, 244, 221, 0.74);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(23, 32, 41, 0.08);
}

.brand,
.nav,
.hero-actions,
.quick-facts,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ff9a16, #ff6f00);
  color: #fff;
  font-size: 18px;
}

.nav {
  gap: 24px;
  color: #6f7585;
  font-size: 14px;
}

.nav a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  min-height: calc(100vh - 68px);
  padding: 74px 6vw 72px;
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  color: #10131a;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 138, 0, 0.32);
  border-radius: 16px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 32, 41, 0.16);
}

.button.primary {
  border-color: var(--primary);
  background: linear-gradient(135deg, #ff9c1a, #ff7a00);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.58);
}

.button.compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.quick-facts {
  flex-wrap: wrap;
  gap: 12px;
}

.quick-facts div {
  min-width: 138px;
  padding: 14px 16px;
  border: 1px solid rgba(236, 228, 245, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 32px rgba(93, 124, 248, 0.08);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.quick-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.device-visual {
  display: grid;
  min-height: 660px;
  place-items: center;
}

.phone-shell {
  position: relative;
  width: min(390px, 88vw);
  max-height: 720px;
  overflow: hidden;
  padding: 18px 16px 74px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background:
    radial-gradient(circle at 25% 6%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #ffe8bf 0 26%, #f6fbff 32% 100%);
  box-shadow:
    0 30px 80px rgba(255, 138, 0, 0.2),
    0 16px 40px rgba(93, 124, 248, 0.12);
}

.phone-status,
.app-title,
.speed-grid,
.shortcut-head,
.phone-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-status {
  margin-bottom: 18px;
  color: #11151c;
  font-size: 13px;
  font-weight: 700;
}

.app-title {
  margin-bottom: 18px;
}

.app-title span {
  display: block;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
  line-height: 0.95;
}

.app-title small {
  color: #d77700;
  font-size: 14px;
  font-weight: 800;
}

.app-title strong {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 35px rgba(255, 138, 0, 0.18);
}

.app-title strong::before {
  position: absolute;
  inset: 9px 14px 18px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(180deg, #ffb52d, #ff7b00);
  content: "";
  transform: rotate(45deg);
}

.speed-grid {
  gap: 14px;
  margin-bottom: 24px;
}

.speed-card {
  position: relative;
  flex: 1;
  min-height: 74px;
  overflow: hidden;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 16px 28px rgba(39, 202, 127, 0.16);
}

.speed-card::after {
  position: absolute;
  right: 17px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.42);
  clip-path: polygon(50% 0, 100% 48%, 72% 48%, 72% 100%, 28% 100%, 28% 48%, 0 48%);
  content: "";
}

.speed-card.upload {
  background: linear-gradient(135deg, #31dc88, #32cfc3);
}

.speed-card.download {
  background: linear-gradient(135deg, #7969ff, #5e93ff);
}

.speed-card.download::after {
  transform: rotate(180deg);
}

.speed-card span {
  display: block;
  font-size: 13px;
  opacity: 0.9;
}

.speed-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.phone-grabber {
  width: 64px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: #e5e9f3;
}

.shortcut-head {
  margin-bottom: 16px;
}

.shortcut-head h3 {
  margin: 0;
  font-size: 26px;
}

.shortcut-head span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #5d7cf8;
  font-size: 13px;
  font-weight: 800;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shortcut-card {
  position: relative;
  min-height: 110px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #e7e5f6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(93, 124, 248, 0.07);
}

.shortcut-card span,
.shortcut-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.shortcut-card span {
  max-width: 96px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.16;
}

.shortcut-card small {
  color: var(--muted);
  font-size: 13px;
}

.shortcut-card::before,
.shortcut-card::after {
  position: absolute;
  content: "";
}

.shortcut-card::before {
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--card-color);
  box-shadow: 18px 18px 24px rgba(255, 255, 255, 0.9);
}

.shortcut-card::after {
  left: 16px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d8deec;
}

.nodes {
  --card-color: linear-gradient(135deg, #3478ff, #5c8dff);
}

.requests {
  --card-color: linear-gradient(135deg, #a23cf5, #d777ff);
}

.sessions {
  --card-color: linear-gradient(135deg, #31dc88, #25c99a);
}

.plugin,
.dns {
  --card-color: linear-gradient(135deg, #6b78ff, #4e8dff);
}

.wifi {
  --card-color: linear-gradient(135deg, #ff466a, #ff8a8a);
}

.phone-tabs {
  position: absolute;
  right: 64px;
  bottom: 16px;
  left: 64px;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(223, 226, 242, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  color: #9ba2b2;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(93, 124, 248, 0.12);
}

.phone-tabs span:first-child {
  color: #4d80ff;
}

.section {
  padding: 76px 6vw;
}

.band {
  background: rgba(255, 253, 248, 0.74);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.download-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.download-panel,
.step {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(93, 124, 248, 0.08);
}

.download-panel {
  padding: 26px;
}

.download-panel p,
.step p,
.split p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  min-height: 270px;
  padding: 24px;
}

.step-index {
  display: block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 18px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--primary);
  content: "✓";
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 36px;
  align-items: end;
  padding: 74px 6vw 42px;
}

.docs-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.05;
}

.docs-hero code,
.doc-body code {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(93, 124, 248, 0.1);
  color: #405ee8;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.docs-meter {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, #31dc88, #5e93ff);
  color: #fff;
  box-shadow: var(--shadow);
}

.docs-meter span,
.docs-meter small {
  display: block;
  font-weight: 800;
  opacity: 0.9;
}

.docs-meter strong {
  display: block;
  margin: 10px 0 2px;
  font-size: 58px;
  line-height: 1;
}

.docs-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  padding: 0 6vw 82px;
}

.docs-sidebar,
.docs-content {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(93, 124, 248, 0.08);
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 18px;
}

.doc-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.doc-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(248, 251, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

.doc-nav {
  display: grid;
  gap: 8px;
}

.doc-nav-item {
  width: 100%;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.doc-nav-item span,
.doc-nav-item small {
  display: block;
}

.doc-nav-item span {
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.doc-nav-item small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.doc-nav-item:hover,
.doc-nav-item.is-active {
  border-color: rgba(255, 138, 0, 0.24);
  background: linear-gradient(135deg, rgba(255, 244, 221, 0.95), rgba(246, 251, 255, 0.96));
}

.doc-nav-item.is-active span {
  color: var(--primary);
}

.docs-content {
  min-width: 0;
  overflow: hidden;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.doc-toolbar h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
}

.doc-body {
  max-width: 980px;
  padding: 32px 30px 46px;
  color: #2b303a;
  font-size: 18px;
  line-height: 1.78;
}

.doc-body .theme-doc-markdown > h1:first-child {
  margin-bottom: 20px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin-top: 34px;
  margin-bottom: 12px;
  scroll-margin-top: 90px;
}

.doc-body h2 {
  color: var(--primary);
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1.2;
}

.doc-body h3 {
  font-size: 23px;
  line-height: 1.28;
}

.doc-body h4 {
  font-size: 19px;
  line-height: 1.35;
}

.doc-body p,
.doc-body li {
  color: #4e596b;
}

.doc-body p {
  margin-bottom: 16px;
}

.doc-body a {
  color: #405ee8;
  font-weight: 800;
}

.doc-body pre {
  overflow: auto;
  padding: 18px 20px;
  border-radius: 18px;
  background: #151923;
  color: #eaf0ff;
  font-size: 15px;
  line-height: 1.65;
}

.doc-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.doc-body ul {
  padding-left: 22px;
}

.official-doc-body .codeBlockContainer_Ckt0,
.official-doc-body .codeBlockContent_biex {
  margin: 18px 0;
  border-radius: 18px;
  background: #151923 !important;
}

.official-doc-body .codeBlockContainer_Ckt0 pre,
.official-doc-body .codeBlockContent_biex pre {
  margin: 0;
  background: #151923 !important;
  color: #eaf0ff !important;
}

.official-doc-body .token-line,
.official-doc-body .token {
  color: inherit !important;
}

.official-doc-body .table-of-contents {
  display: none;
}

.official-doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.official-doc-body th,
.official-doc-body td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.official-doc-body th {
  background: rgba(255, 244, 221, 0.9);
  color: var(--primary-dark);
}

.official-doc-body blockquote,
.official-doc-body .theme-admonition {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 138, 0, 0.24);
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  background: rgba(255, 244, 221, 0.72);
}

.official-doc-body img {
  max-width: 100%;
  border-radius: 18px;
}

.official-doc-body .hash-link,
.official-doc-body .anchor {
  display: none;
}

.compact-docs-hero {
  padding-bottom: 30px;
}

.html-docs-shell {
  padding-bottom: 92px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  gap: 18px;
  font-weight: 800;
}

.floating-tags {
  position: fixed;
  left: 0;
  top: 52vh;
  z-index: 60;
  display: grid;
  gap: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

.floating-tags-panel {
  display: grid;
  gap: 10px;
  transform: translateX(-112px);
  transition: transform 220ms ease;
}

.floating-tags:hover .floating-tags-panel,
.floating-tags:focus-within .floating-tags-panel,
.floating-tags.is-open .floating-tags-panel {
  transform: translateX(0);
}

.floating-tags-handle {
  width: 34px;
  height: 78px;
  cursor: pointer;
  border: 0;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(180deg, #ff9c1a, #ff6d00);
  box-shadow: 0 14px 34px rgba(255, 138, 0, 0.24);
  pointer-events: auto;
}

.floating-tags-handle span {
  display: block;
  width: 5px;
  height: 34px;
  margin: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.floating-tag {
  position: relative;
  display: flex;
  width: 158px;
  min-height: 50px;
  align-items: center;
  overflow: hidden;
  padding: 0 18px 0 20px;
  border-radius: 0 18px 18px 0;
  color: #fff;
  font-weight: 900;
  isolation: isolate;
  pointer-events: auto;
  box-shadow: 0 14px 34px rgba(93, 124, 248, 0.18);
  transform: translateX(0);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.floating-tag::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--floating-gradient);
  background-size: 180% 180%;
  content: "";
  animation: floating-tag-flow 7s ease infinite;
}

.floating-tag::after {
  position: absolute;
  top: -26px;
  right: -18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  content: "";
  filter: blur(2px);
}

.floating-tag:hover {
  transform: translateX(5px);
  box-shadow: 0 18px 40px rgba(255, 138, 0, 0.22);
}

.floating-tag[aria-disabled="true"] {
  cursor: default;
}

.floating-tag[aria-disabled="true"]:hover {
  filter: saturate(1.08);
}

.floating-tag-home {
  --floating-gradient: linear-gradient(135deg, #ff9c1a, #ff6d00, #ffc46b);
}

.floating-tag-rules {
  --floating-gradient: linear-gradient(135deg, #31dc88, #24c8bd, #5e93ff);
}

.floating-tag-plugin {
  --floating-gradient: linear-gradient(135deg, #7c6bff, #b14bff, #ff7bc1);
}

@keyframes floating-tag-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 920px) {
  .hero,
  .download-layout,
  .split,
  .docs-hero,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .device-visual {
    min-height: 430px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-inline: 18px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .section,
  .docs-hero,
  .docs-shell {
    padding-inline: 20px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .doc-body {
    padding: 24px;
  }
}
