:root {
  color-scheme: light;
  --paper: #f6f8fd;
  --surface: #fff;
  --icon-panel: #edf3ff;
  --gradient-a: #dce8ff;
  --gradient-b: #ede0ff;
  --gradient-c: #c7e9f8;
  --card-shadow: #2b4b7820;
  --overlay: #111d33aa;
  --ink: #142137;
  --muted: #526078;
  --line: #dce4f0;
  --accent: #174db0;
  --on-accent: #fff;
  --panel: #e4edfb;
  --tint: #f0f5fc;
  --frame: #a6bad7;
  --image-shadow: #16385d24;
  --day: block;
  --night: none;
  scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111a29;
    --surface: #1c2a40;
    --icon-panel: #283e5e;
    --gradient-a: #203353;
    --gradient-b: #3b2c59;
    --gradient-c: #254962;
    --card-shadow: #070e2250;
    --overlay: #040812cc;
    --ink: #edf3fd;
    --muted: #b2c0d5;
    --line: #2d3d54;
    --accent: #a4c5ff;
    --on-accent: #0b234c;
    --panel: #202f4b;
    --tint: #162237;
    --frame: #435578;
    --image-shadow: #03081580;
    --day: none;
    --night: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111a29;
  --surface: #1c2a40;
  --icon-panel: #283e5e;
  --gradient-a: #203353;
  --gradient-b: #3b2c59;
  --gradient-c: #254962;
  --card-shadow: #070e2250;
  --overlay: #040812cc;
  --ink: #edf3fd;
  --muted: #b2c0d5;
  --line: #2d3d54;
  --accent: #a4c5ff;
  --on-accent: #0b234c;
  --panel: #202f4b;
  --tint: #162237;
  --frame: #435578;
  --image-shadow: #03081580;
  --day: none;
  --night: block;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  transition: background-color .2s ease, color .2s ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { color: var(--muted); }

.wrap {
  width: min(100% - 3.5rem, 75rem);
  margin-inline: auto;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-inner {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .64rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 720;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand img { object-fit: contain; }

.main-nav, .preferences, .footer-inner nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.preferences { justify-self: end; gap: .6rem; }

.main-nav a, .footer-inner nav a, .language {
  text-decoration: none;
  color: var(--muted);
  font-weight: 550;
  transition: color .18s ease;
}

.main-nav a:hover, .footer-inner nav a:hover, .language:hover, a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.language, .theme {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
}
.language { padding-inline: .36rem; white-space: nowrap; }
.theme {
  width: 2.75rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  color: var(--ink);
  transition: background-color .18s ease;
}
.theme:hover { background: var(--tint); }
.theme .icon { transition: transform .18s ease; }
.theme:hover .icon { transform: rotate(-12deg); }
.day { display: var(--day); animation: appear .22s ease; }
.night { display: var(--night); animation: appear .22s ease; }

@keyframes appear { from { opacity: .25; } to { opacity: 1; } }

.skip {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 5;
  padding: .4rem .7rem;
  background: var(--paper);
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip:focus { transform: translateY(0); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.2fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}

h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.7rem);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.04;
}

:lang(zh) h1 {
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  letter-spacing: -.043em;
  line-height: 1.17;
}

.hero h1 span { display: block; }
.hero-copy { animation: enter .65s cubic-bezier(.2,.65,.3,1) both; }
.hero h1 span:last-child { color: var(--accent); }
.hero-copy > p {
  max-width: 29rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.68vw, 1.24rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-primary {
  margin-top: 1.85rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .65rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  gap: .65rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  padding-inline: 1.25rem;
}
.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  opacity: .9;
}
.hero-links .button { min-width: 7.5rem; }
.button img { flex: none; }
.gitee-link { margin-top: .65rem; background: transparent; }
.button:not(.button-primary):hover { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.gitee-icon, .apple-icon { fill: currentColor; stroke: none; width: 1.18rem; height: 1.18rem; }
.hero-copy > p.download-note {
  margin-top: .55rem;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--muted);
}

.showcase {
  position: relative;
  aspect-ratio: 1.21;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.35rem;
  background: var(--panel) linear-gradient(124deg, var(--gradient-a), var(--gradient-b) 48%, var(--gradient-c));
  background-size: 235% 235%;
  animation: current 11s ease-in-out infinite alternate;
  isolation: isolate;
}
.shot {
  position: absolute;
  padding: 0;
  color: var(--ink);
  overflow: hidden;
  border: 1px solid var(--frame);
  background: var(--paper);
  box-shadow: 0 .6rem 2.1rem var(--image-shadow);
  transition: transform .3s cubic-bezier(.2,.65,.3,1), box-shadow .3s ease;
  animation: enter .65s cubic-bezier(.2,.65,.3,1) backwards;
}
.shot img { width: 100%; height: auto; }
.desktop { top: 11%; left: 6%; width: 84%; border-radius: .65rem; animation-delay: .12s; }
.phone { bottom: 7%; right: 5%; width: 28.5%; border-radius: .95rem; animation-delay: .24s; }
.zoom-icon {
  position: absolute;
  inset: auto .55rem .55rem auto;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .52rem;
  color: var(--accent);
  background: var(--surface);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
}
.shot:focus-visible .zoom-icon, .shot:hover .zoom-icon {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover { transform: translateY(-.3rem); box-shadow: 0 .9rem 2.7rem var(--image-shadow); }
}
@keyframes current {
  from { background-position: 10% 24%; }
  to { background-position: 90% 76%; }
}
@keyframes enter {
  from { opacity: .1; transform: translateY(.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-dialog {
  width: fit-content;
  max-width: min(calc(100% - 1.5rem), 65rem);
  max-height: calc(100% - 1.5rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem var(--image-shadow);
}
.preview-dialog[open] { animation: enter .28s cubic-bezier(.2,.65,.3,1); }
.preview-dialog::backdrop { background: var(--overlay); animation: appear .2s ease; }
.preview-content { padding: .8rem; }
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 13rem;
  margin: 0 .2rem .6rem .4rem;
  gap: 1.25rem;
}
.preview-header h2 { font-size: 1.04rem; letter-spacing: -.015em; }
.preview-close {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: .65rem;
  color: var(--ink);
  background: var(--icon-panel);
  transition: color .18s ease, background-color .18s ease;
}
.preview-close:hover { color: var(--on-accent); background: var(--accent); }
.preview-content img {
  max-width: 100%;
  max-height: min(75vh, 48rem);
  border-radius: .52rem;
  object-fit: contain;
  margin-inline: auto;
}


.section { padding-block: clamp(3.25rem, 6.2vw, 5.7rem); }

h2 {
  font-size: clamp(1.95rem, 3.6vw, 3.25rem);
  font-weight: 710;
  line-height: 1.12;
  letter-spacing: -.05em;
}

h3 { font-size: 1.16rem; line-height: 1.32; font-weight: 685; }
.feature-list, .sync-list, .platform-list { padding: 0; list-style: none; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.85rem, 1.65vw, 1.45rem);
  margin-top: 2.6rem;
}
.feature-list li {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  min-width: 0;
  border-radius: 1.15rem;
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature-list li:hover { transform: translateY(-.2rem); box-shadow: 0 .55rem 1.4rem var(--card-shadow); }
}
.feature-list .icon, .sync-list .icon, .platform-list .icon { color: var(--accent); }
.feature-list .icon {
  width: 2.8rem;
  height: 2.8rem;
  padding: .67rem;
  margin-bottom: .95rem;
  border-radius: .8rem;
  background: var(--icon-panel);
}
.feature-list p, .sync-list p { margin-top: .48rem; line-height: 1.62; }

.tint { background: var(--tint); transition: background-color .2s ease; }
.sync-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 7vw, 6rem);
}
.section-intro > p { margin-top: .9rem; max-width: 39rem; }
.inline-link, .prose a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.inline-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}
.sync-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  margin-bottom: .65rem;
  padding: 1.15rem 1.2rem;
  border-radius: .9rem;
  background-color: var(--surface);
  transition: background-color .2s ease;
}
.sync-list .icon { margin-top: .1rem; width: 1.35rem; height: 1.35rem; }

.platform-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
}
.platform-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 0;
  font-size: 1.1rem;
  font-weight: 620;
}
.platform-list .icon { width: 1.45rem; height: 1.45rem; }

.bottom { background: var(--tint); transition: background-color .2s ease; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  gap: 1.25rem;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.footer-brand .brand { font-size: 1rem; }
.footer-brand > span { font-size: .9rem; color: var(--muted); }
.footer-inner nav { flex-wrap: wrap; gap: .65rem 1.25rem; }

.document { padding-block: clamp(2.75rem, 6.5vw, 5.75rem); }
.prose { max-width: 47rem; margin-inline: auto; }
.document-heading { margin-bottom: 2rem; }
.document-heading h1 {
  font-size: clamp(2.35rem, 5.7vw, 4rem);
  line-height: 1.11;
}
.effective-date { margin-top: .65rem; font-size: .92rem; }
.intro { margin-top: 1.12rem; font-size: 1.125rem; }
.prose section { padding-block: 1.18rem; }
.prose section h2 { font-size: clamp(1.25rem, 2.9vw, 1.65rem); letter-spacing: -.025em; }
.prose section p { margin-top: .68rem; overflow-wrap: anywhere; }
.prose section p + p { margin-top: .8rem; }

@media (max-width: 60rem) {
  .hero { gap: 1.75rem; }
  h1 { font-size: clamp(2.35rem, 5.25vw, 3.85rem); }
  :lang(zh) h1 { font-size: clamp(2.15rem, 4.65vw, 3.4rem); }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 4.05rem; gap: .4rem; }
  .main-nav { display: none; }
  .brand { gap: .46rem; }
  .brand img { width: 1.75rem; height: 1.75rem; }
  .preferences { gap: .18rem; }
  .language .icon { width: 1.05rem; height: 1.05rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.8rem 2.65rem; gap: 1.65rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.45rem); }
  :lang(zh) .hero h1 { font-size: clamp(2rem, 7.9vw, 3.3rem); }
  .hero-copy > p { margin-top: 1rem; }
  .hero-primary { margin-top: 1.25rem; }
  .hero-links { margin-top: .65rem; }
  .showcase { aspect-ratio: 1.14; }
 .desktop { top: 9%; left: 4.5%; width: 87%; }
  .phone { bottom: 6%; right: 4.5%; width: 30.5%; }
  .section { padding-block: 2.75rem; }
  .feature-list { gap: 1.35rem 1rem; margin-top: 1.65rem; }
  .feature-list li { padding: 1.05rem; }
  .sync-section { grid-template-columns: 1fr; gap: 1.45rem; }
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 22rem) {
  .feature-list { grid-template-columns: 1fr; }
  .language .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
