:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #171a20;
  --muted: #687080;
  --line: #e2ded6;
  --line-strong: #cec8bd;
  --blue: #2e74ff;
  --blue-soft: #e7efff;
  --green: #0f9f6e;
  --shadow: 0 28px 80px rgba(39, 34, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[data-lang="zh"] .en,
html[data-lang="en"] .zh {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

body::selection {
  color: #ffffff;
  background: var(--blue);
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(226, 222, 214, 0.82);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 50px rgba(39, 34, 27, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.tag-list,
.feature-row,
.site-footer {
  display: flex;
  align-items: center;
}

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

.brand img,
.panel-title img {
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(46, 116, 255, 0.2);
}

.site-header nav {
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--ink);
}

.lang-toggle {
  min-width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.8fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  min-height: 820px;
  margin: 0 auto;
  padding: 132px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    linear-gradient(rgba(23, 26, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 32, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

.hero-copy {
  max-width: 560px;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: 104px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 28px;
  color: #3f4652;
  font-size: 22px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button::before {
  content: "↓";
  margin-right: 8px;
  font-weight: 900;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(46, 116, 255, 0.18);
}

.button.primary:hover {
  background: #195fe6;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(14px);
}

.button.full {
  width: 100%;
}

.hero-note,
.panel-title span,
.record small,
.section-title p,
.feature-row p,
.download-card p,
.faq-list p,
.site-footer p {
  color: var(--muted);
}

.hero-preview {
  position: relative;
  min-width: 0;
  min-height: 590px;
}

.preview-menubar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  margin: 0 0 14px auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 18px 60px rgba(39, 34, 27, 0.08);
  backdrop-filter: blur(20px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.preview-menubar span:last-child {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-window {
  width: min(470px, 100%);
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.window-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.window-toolbar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.window-toolbar span:nth-child(2) {
}

.window-toolbar span:nth-child(3) {
}

.window-toolbar b {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  background: transparent;
}

.window-body {
  display: block;
  padding: 18px;
}

.history-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9f4;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title strong,
.panel-title span {
  display: block;
}

.search-bar {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.tag-list span {
  padding: 7px 13px;
  color: #3c4656;
  font-size: 12px;
  box-shadow: none;
}

.tag-list span span {
  padding: 0;
  border: 0;
  background: transparent;
}

.record {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.record.selected {
  border-color: rgba(46, 116, 255, 0.42);
  background: var(--blue-soft);
}

.record b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 98px 0;
}

.section-title,
.feature-row,
.download-layout,
.faq-list,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-row {
  align-items: stretch;
  gap: 14px;
}

.feature-row article,
.download-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(39, 34, 27, 0.08);
}

.feature-row article {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px;
}

.feature-row article > span {
  display: inline-flex;
  margin-bottom: 48px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.downloads {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.download-card {
  padding: 28px;
}

.platform {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}

dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.plain-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 850;
}

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

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.site-footer {
  justify-content: space-between;
  gap: 24px;
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 900;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-preview {
    min-height: auto;
  }

  .preview-menubar,
  .workspace-window {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    gap: 14px;
  }

  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .feature-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .feature-row article {
    flex-basis: calc(50% - 8px);
  }

  .download-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header nav a:nth-child(1) {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .preview-menubar {
    grid-template-columns: auto auto;
  }

  .preview-menubar span:last-child {
    display: none;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 21px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 70px 0;
  }

  .feature-row article {
    flex-basis: 100%;
  }

  .download-card {
    padding: 22px;
  }

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