:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #25221e;
  --muted: #736d64;
  --soft: #eee8dc;
  --line: rgba(66, 57, 46, .12);
  --accent: #b08850;
  --accent-strong: #6d4a20;
  --card: rgba(255, 255, 255, .72);
  --shadow: 0 24px 70px rgba(80, 66, 45, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(250, 227, 171, .45), transparent 30%),
    radial-gradient(circle at 90% 6%, rgba(194, 217, 222, .42), transparent 34%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.62;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 247, .72);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: .02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #b8945a, #3d6f78);
  box-shadow: 0 8px 20px rgba(80, 66, 45, .18);
}

.brand-text {
  text-transform: uppercase;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: 72px clamp(20px, 5vw, 72px);
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.hero-desc,
.section p,
.download-section p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button.primary {
  color: #fff;
  background: #2b2926;
  box-shadow: 0 14px 28px rgba(36, 32, 27, .16);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
}

.button.wide {
  width: 100%;
}

.download-note {
  margin-top: 14px;
  color: #958b7e;
  font-size: 13px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: #91897e;
  font-size: 11px;
  letter-spacing: .1em;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d6cfc5;
}

.window-bar span:nth-child(1) { background: #e98a7f; }
.window-bar span:nth-child(2) { background: #e7c36a; }
.window-bar span:nth-child(3) { background: #78bd7b; }

.window-bar strong {
  margin-left: 8px;
}

.app-preview {
  display: grid;
  grid-template-columns: 150px 230px 1fr;
  min-height: 440px;
  background: #f8f6f1;
}

.app-preview aside,
.list-pane,
.editor-pane {
  padding: 18px;
}

.app-preview aside {
  border-right: 1px solid var(--line);
  color: #6f685e;
}

.folder {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.folder.active {
  color: var(--ink);
  background: #fff;
}

.list-pane {
  border-right: 1px solid var(--line);
}

.file-card {
  display: block;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
}

.file-card.active {
  background: #eadcc3;
}

.file-card strong,
.file-card span {
  display: block;
}

.file-card strong {
  font-size: 14px;
}

.file-card span {
  margin-top: 6px;
  color: #7d7468;
  font-size: 12px;
}

.editor-pane {
  background: #fffdf9;
  color: #27231e;
}

.editor-pane .date {
  color: #aaa197;
  text-align: center;
  font-size: 12px;
}

.editor-pane h2 {
  font-size: 28px;
}

.editor-pane blockquote {
  margin: 18px 0;
  padding: 8px 12px;
  border-left: 3px solid #ccb78f;
  background: #f6f1e8;
  border-radius: 8px;
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section.compact {
  max-width: 1000px;
}

.grid-section {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 44px;
}

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

.feature-grid article,
.format-list > div,
.architecture-box > div,
.download-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(80, 66, 45, .06);
}

.feature-grid article {
  padding: 24px;
}

.feature-grid p,
.format-list p,
.architecture-box p {
  color: var(--muted);
  font-size: 14px;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.format-list > div {
  padding: 22px;
}

.format-list span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.architecture-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.architecture-box > div {
  padding: 24px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
  margin: 40px clamp(20px, 5vw, 72px) 80px;
  padding: 42px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(235, 222, 198, .86), rgba(229, 238, 239, .9));
  border: 1px solid var(--line);
}

.download-card {
  padding: 26px;
  background: rgba(255, 255, 255, .78);
}

.code-note {
  display: block;
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  color: #70675d;
  background: rgba(43, 41, 38, .06);
  font-size: 12px;
  white-space: normal;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: #8e857a;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .grid-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .product-card {
    overflow-x: auto;
  }

  .app-preview {
    min-width: 760px;
  }

  .format-list,
  .architecture-box,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    padding-block: 16px;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .section,
  .hero {
    padding-block: 50px;
  }

  .download-section {
    margin-inline: 20px;
    padding: 26px;
  }

  .footer {
    flex-direction: column;
  }
}


.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.language-toggle:hover {
  color: var(--ink);
  background: rgba(255,255,255,.94);
  transform: translateY(-1px);
}

.language-toggle i {
  width: 1px;
  height: 12px;
  background: rgba(80, 70, 58, .2);
}

html[lang="zh-CN"] [data-lang-label-zh],
html[lang="en"] [data-lang-label-en] {
  color: var(--accent-strong);
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: row;
    align-items: center;
  }

  .language-toggle {
    margin-left: auto;
  }
}
