:root {
  --paper: #fbfbf7;
  --surface: #ffffff;
  --surface-soft: #f3f4ee;
  --ink: #18231f;
  --ink-soft: #3b4843;
  --muted: #6f7974;
  --line: #dfe3db;
  --line-strong: #c5cdbf;
  --green: #1f5c48;
  --green-soft: #dfeae2;
  --copper: #9d6a3a;
  --copper-soft: #efe2d2;
  --shadow: 0 22px 64px rgba(24, 35, 31, 0.12);
  --shadow-soft: 0 14px 34px rgba(24, 35, 31, 0.08);
  --content: 1160px;
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(31, 92, 72, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 92, 72, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
}

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.content {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(197, 205, 191, 0.72);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(var(--content), calc(100% - 32px));
  min-height: 68px;
  margin-inline: auto;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.brand-text {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--green);
}

.site-nav a:focus-visible,
.button:focus-visible,
.contact-links a:focus-visible,
.footer-inner a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 150px);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(31, 92, 72, 0.12) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent 0, transparent calc(50% - 1px), rgba(157, 106, 58, 0.12) 50%, transparent calc(50% + 1px));
  background-size: 240px 240px;
}

.hero::before {
  position: absolute;
  top: 11%;
  right: 8%;
  z-index: -2;
  width: 440px;
  height: 440px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.72;
  content: "";
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -2;
  width: min(54vw, 720px);
  height: min(42vw, 520px);
  border-top: 1px solid rgba(157, 106, 58, 0.22);
  border-left: 1px solid rgba(157, 106, 58, 0.18);
  background: rgba(239, 226, 210, 0.36);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 72px 0 78px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 14px;
  color: var(--copper);
  font-size: 14px;
  font-weight: 750;
}

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 80px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.45;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions,
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--surface);
}

.button-primary:hover {
  background: #174938;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin: 38px 0 0;
}

.hero-notes div {
  min-width: 112px;
  padding: 12px 14px;
  border-left: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.42);
}

.hero-notes dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.hero-notes dd {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}

.hero-art {
  position: absolute;
  right: max(24px, calc((100vw - var(--content)) / 2));
  bottom: -44px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  pointer-events: none;
}

.hero-phone {
  width: 238px;
  border: 1px solid rgba(24, 35, 31, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-phone-primary {
  transform: translateY(-18px);
}

.hero-phone-secondary {
  width: 204px;
  opacity: 0.9;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.meaning-section {
  background: rgba(255, 255, 255, 0.48);
}

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

.meaning-card,
.principle-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.meaning-card {
  min-height: 260px;
  padding: 30px;
}

.meaning-index,
.principle-item span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 750;
}

.meaning-card p,
.principle-item p,
.product-copy p,
.philosophy-copy p {
  color: var(--ink-soft);
}

.meaning-card p {
  max-width: 500px;
  margin-bottom: 0;
}

.philosophy-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.philosophy-section h2 {
  color: var(--paper);
}

.philosophy-section .section-kicker {
  color: #d7b78e;
}

.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.philosophy-copy {
  display: grid;
  gap: 18px;
  padding-left: 30px;
  border-left: 1px solid rgba(251, 251, 247, 0.22);
}

.philosophy-copy p {
  margin-bottom: 0;
  color: #d7ded7;
  font-size: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 24px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.product-card-featured {
  grid-template-columns: minmax(0, 1fr);
}

.product-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-media img {
  width: 100%;
}

.product-figure {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(24, 35, 31, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 35, 31, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f9f5ed 0%, #eef3ea 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.pixel-mark {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 64px;
  font-weight: 850;
  line-height: 1;
}

.pixel-line,
.pixel-dot {
  position: absolute;
  display: block;
  border: 1px solid rgba(31, 92, 72, 0.28);
  background: rgba(255, 255, 255, 0.54);
}

.pixel-line {
  height: 18px;
  border-radius: 3px;
}

.pixel-line-a {
  top: 36px;
  right: 34px;
  width: 124px;
}

.pixel-line-b {
  top: 68px;
  right: 72px;
  width: 86px;
}

.pixel-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.pixel-dot-a {
  right: 68px;
  bottom: 48px;
}

.pixel-dot-b {
  right: 28px;
  bottom: 88px;
}

.product-copy {
  padding: 0 6px 4px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-title img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.text-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  font-weight: 850;
}

.app-label {
  margin-bottom: 2px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 750;
}

.app-title h3 {
  margin-bottom: 0;
}

.product-copy > p {
  margin-bottom: 26px;
  font-size: 17px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.principles-section {
  background: var(--surface-soft);
}

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

.principle-item {
  min-height: 238px;
  padding: 24px;
}

.principle-item span {
  margin-bottom: 26px;
}

.principle-item p {
  margin-bottom: 0;
}

.contact-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 52px;
  align-items: end;
}

.contact-links {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  color: var(--green);
  font-weight: 750;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-inner p {
  margin-bottom: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-inner a:hover {
  color: var(--green);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 64px 0 300px;
  }

  .hero-art {
    right: 24px;
    bottom: -84px;
  }

  .hero-phone {
    width: 196px;
  }

  .hero-phone-secondary {
    width: 168px;
  }

  .philosophy-layout,
  .product-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header-inner {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 38px;
    padding-inline: 10px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 29px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-content {
    padding: 48px 0 248px;
  }

  .hero-lead {
    font-size: 23px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero::before {
    top: auto;
    right: -120px;
    bottom: 52px;
    width: 300px;
    height: 300px;
  }

  .hero::after {
    width: 100%;
    height: 240px;
  }

  .hero-art {
    right: 16px;
    bottom: -58px;
    gap: 10px;
  }

  .hero-phone {
    width: 142px;
    border-radius: 18px;
  }

  .hero-phone-secondary {
    width: 122px;
  }

  .hero-notes {
    gap: 8px;
  }

  .hero-notes div {
    flex: 1 1 94px;
    min-width: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .meaning-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .meaning-card {
    min-height: 0;
    padding: 24px;
  }

  .meaning-index {
    margin-bottom: 26px;
  }

  .philosophy-copy {
    padding-left: 18px;
  }

  .philosophy-copy p {
    font-size: 16px;
  }

  .work-links .button {
    flex: 1 1 150px;
  }
}

@media (max-width: 430px) {
  .content,
  .site-header-inner {
    width: min(var(--content), calc(100% - 24px));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    font-size: 17px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-content {
    padding: 38px 0 178px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-phone {
    width: 126px;
  }

  .hero-phone-secondary {
    width: 108px;
  }

  .principle-item {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ 内测下载页 ============ */
.download-intro {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

.download-list {
  display: grid;
  gap: 20px;
}

.download-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.download-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.download-icon {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-head h3 {
  margin-bottom: 0;
}

.download-summary {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

.download-platforms {
  display: grid;
  gap: 12px;
}

.download-platform {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.download-platform-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.download-platform-info {
  min-width: 0;
}

.download-platform-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.download-os {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.download-dot {
  color: var(--line-strong);
}

.download-note {
  margin: 6px 0 0;
  color: var(--copper);
  font-size: 13px;
}

.download-changelog {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.download-changelog-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.download-changelog-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.download-changelog-list li + li {
  margin-top: 4px;
}

.download-platform .button {
  flex-shrink: 0;
}

.button.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.download-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .download-card {
    padding: 20px;
  }

  .download-platform-main {
    flex-direction: column;
    align-items: stretch;
  }

  .download-platform .button {
    width: 100%;
  }
}
