:root {
  --blue: #2563eb;
  --blue-strong: #155eef;
  --blue-soft: #eaf2ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --panel: #ffffff;
  --bg: #f8fbff;
  --soft: #f1f6ff;
  --shadow: 0 24px 70px rgba(37, 99, 235, 0.16);
  --radius: 8px;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 82px;
  padding: 0 clamp(22px, 6vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 240, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 54px);
  font-size: 15px;
  color: #334155;
}

.main-nav a {
  position: relative;
  padding: 29px 0 27px;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  content: "";
  background: var(--blue);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  font-weight: 700;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 58px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0f5bea);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.btn.secondary {
  color: var(--blue);
  background: #fff;
  border-color: #c9daf8;
}

.btn.white {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 10px 26px rgba(5, 43, 112, 0.16);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 800;
}

.container {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 58px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.12), transparent 36%),
    linear-gradient(135deg, #fff 0%, #f5f9ff 62%, #edf5ff 100%);
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -160px;
  width: 52vw;
  height: 360px;
  content: "";
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0));
  clip-path: polygon(20% 0, 100% 12%, 74% 100%, 0 84%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 2px;
  font-size: clamp(48px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h2 {
  margin: 0 0 24px;
  font-size: clamp(25px, 3.3vw, 36px);
  line-height: 1.25;
}

.hero p {
  max-width: 530px;
  margin: 0 0 34px;
  color: #536275;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 34px;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: #738196;
  font-size: 14px;
}

.signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signals svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.app-window {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9d7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-product-shot {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9d7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #e6edf7;
}

.app-titlebar .mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.app-titlebar img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.window-dots {
  display: flex;
  gap: 16px;
  color: #64748b;
  font-size: 18px;
}

.app-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 430px;
}

.sidebar {
  padding: 18px 12px;
  background: #f8fbff;
  border-right: 1px solid #e7eef8;
}

.sidebar h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-item,
.side-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin-bottom: 9px;
  padding: 0 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.side-item.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.side-bottom {
  margin-top: 118px;
}

.workspace {
  padding: 18px;
  min-width: 0;
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.workspace h3 {
  margin: 0;
  font-size: 21px;
}

.fake-select,
.fake-search {
  height: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
}

.fake-select {
  width: 108px;
}

.fake-search {
  width: 170px;
}

.toolbar {
  display: flex;
  gap: 9px;
  padding: 11px;
  margin-bottom: 12px;
  border: 1px solid #e4ecf7;
  border-radius: 8px;
  background: #fff;
}

.toolbar button {
  height: 32px;
  padding: 0 14px;
  color: #334155;
  border: 1px solid #e0e8f3;
  border-radius: 7px;
  background: #f8fbff;
  font-weight: 700;
}

.toolbar button:first-child {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.task-table {
  overflow: hidden;
  border: 1px solid #e1eaf5;
  border-radius: 8px;
}

.task-head,
.task-row {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr 0.65fr;
  gap: 12px;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  font-size: 13px;
}

.task-head {
  color: #64748b;
  background: #fbfdff;
  font-weight: 800;
}

.task-row {
  min-height: 170px;
  align-items: start;
  padding-top: 30px;
  color: #94a3b8;
  border-top: 1px solid #e1eaf5;
}

.empty-state {
  color: #94a3b8;
}

.section {
  padding: 54px 0;
}

.section.alt {
  background: var(--bg);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.04);
}

.feature-list .card {
  text-align: center;
}

.card.center {
  text-align: center;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  color: var(--blue);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #fff;
}

.icon-badge svg {
  width: 31px;
  height: 31px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: #64748b;
}

.docs-panel {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.04);
}

.docs-menu {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.docs-menu a {
  padding: 12px 14px;
  color: #475569;
  border-radius: 7px;
  font-weight: 700;
}

.docs-menu a.active,
.docs-menu a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

.docs-content {
  min-width: 0;
  padding: 26px 40px 32px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-content p,
.docs-content li,
.docs-content td,
.docs-content th,
.docs-content span,
.docs-content strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: center;
  margin: 24px 0;
}

.flow-step {
  min-height: 62px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.plugin-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.logo-baidu {
  background: #2494ff;
}

.logo-media {
  background: linear-gradient(135deg, #6d5dfc, #a855f7);
}

.logo-video {
  background: #111827;
}

.logo-music {
  background: #e11d48;
}

.logo-av {
  background: #0f766e;
}

.logo-tools {
  background: #f59e0b;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  color: #64748b;
  font-size: 13px;
}

.cta-band {
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 79, 216, 0.95), rgba(37, 99, 235, 0.98)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 24px);
  border-radius: 8px;
}

.rocket {
  position: relative;
  width: 124px;
  height: 124px;
  margin: auto;
}

.rocket::before {
  position: absolute;
  inset: 17px 32px;
  content: "";
  background: #fff;
  border-radius: 50% 50% 46% 46%;
  transform: rotate(40deg);
}

.rocket::after {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 52px;
  height: 28px;
  content: "";
  background: #fbbf24;
  clip-path: polygon(0 50%, 100% 0, 72% 100%);
  transform: rotate(35deg);
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
}

.cta-band p {
  margin: 0;
  color: #dbeafe;
}

.cta-actions {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.site-footer {
  padding: 34px clamp(22px, 6vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.copyright {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 34px;
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  padding: 64px 0 44px;
  background: linear-gradient(135deg, #fff, #f3f8ff);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 900;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 730px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.stat-strip {
  display: flex;
  gap: 18px;
}

.stat {
  min-width: 120px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.feature-list,
.guide-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.wide-card {
  grid-column: span 2;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step::before {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  content: counter(step);
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.step h3 {
  margin: 0 0 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table th,
.table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table th {
  color: #475569;
  background: #f8fbff;
}

.table tr:last-child td {
  border-bottom: 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.version-pill {
  display: inline-flex;
  width: max-content;
  padding: 5px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.code-block {
  overflow-x: auto;
  padding: 16px;
  color: #dbeafe;
  background: #111827;
  border-radius: 8px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.screenshot-card {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.screenshot-card img {
  border-radius: 6px;
}

.screenshot-card figcaption {
  margin: 10px 0 2px;
  color: #64748b;
  text-align: center;
  font-weight: 800;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    height: auto;
    min-height: 72px;
  }

  .nav-toggle {
    display: block;
    order: 3;
    grid-column: 4;
    justify-self: end;
  }

  .main-nav {
    display: none;
    order: 4;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 16px;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .header-download {
    order: 2;
    grid-column: 3;
    justify-self: end;
  }

  .hero-grid,
  .page-hero .container,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .cards,
  .plugin-grid,
  .feature-list,
  .guide-grid,
  .download-grid,
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-panel {
    grid-template-columns: 1fr;
  }

  .docs-menu {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .brand {
    font-size: 20px;
  }

  .header-download {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions,
  .signals,
  .stat-strip,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .workspace-top,
  .task-head,
  .task-row {
    display: none;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .task-table {
    min-height: 180px;
  }

  .cards,
  .plugin-grid,
  .feature-list,
  .guide-grid,
  .download-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: span 1;
  }

  .docs-content {
    padding: 24px;
  }

  .docs-menu {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px 22px;
    text-align: center;
  }

  .rocket {
    width: 92px;
    height: 92px;
  }
}
