:root {
  color-scheme: light;
  --ink: #291e1a;
  --muted: #64534c;
  --paper: #fbf7f2;
  --sheet: #fffcf8;
  --line: #e3d6cb;
  --accent: #9c412b;
  --accent-dark: #79301f;
  font-family: system-ui, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.58; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }
p { color: var(--muted); }
.container { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 3; top: 1rem; left: 1rem; padding: .55rem .85rem; background: white; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 730; letter-spacing: -.024em; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.55rem; font-size: .875rem; font-weight: 600; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); }
.nav-github { padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 6px; }

.hero {
  min-height: 660px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.22fr);
  align-items: center; gap: clamp(2.5rem, 6vw, 5rem); padding-block: 5.75rem 5.25rem;
}
.platform { font-size: .875rem; font-weight: 740; letter-spacing: .105em; color: var(--accent-dark); }
.hero h1 { font-size: clamp(2.85rem, 5.4vw, 5.1rem); line-height: 1.14; margin-top: 1.2rem; letter-spacing: -.065em; font-weight: 800; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 28rem; margin-top: 1.55rem; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: .58rem 1rem; border: 1px solid transparent; border-radius: 8px;
  font-weight: 680; font-size: .9375rem;
}
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: var(--line); background: var(--sheet); }
.button.secondary:hover { background: #f4ebe1; }

.demo {
  min-width: 0; background: linear-gradient(145deg, #f1dac6, #e8c3b3);
  border: 1px solid #e4c6b7; border-radius: 25px;
  padding: clamp(1rem, 2.75vw, 2.25rem);
}
.demo-frame {
  min-width: 0; overflow: hidden; border-radius: 15px; border: 1px solid #daccc2;
  background: var(--sheet); box-shadow: 0 20px 45px #5e301a25;
}
.demo figcaption { margin-top: 1rem; text-align: center; font-size: .875rem; color: #573c31; }
.no-script { text-align: center; }
.window-tabs, .window-toolbar { display: flex; align-items: center; gap: .6rem; padding: .48rem .75rem; }
.window-tabs { background: #ede4dc; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.window-tabs img { align-self: start; }
.window-tab { align-self: stretch; padding: .22rem .65rem .42rem; font-size: .875rem; white-space: nowrap; }
.window-tab.active { background: var(--sheet); border-radius: 7px 7px 0 0; font-weight: 680; }
.window-decoration { color: var(--muted); margin-left: auto; font-size: .875rem; white-space: nowrap; letter-spacing: .12em; }
.window-toolbar { min-height: 42px; border-bottom: 1px solid var(--line); background: #f9f3ee; }
.address-icon { width: 11px; height: 11px; border: 1.5px solid #7b6355; border-radius: 50%; }
.window-address { font-size: .875rem; color: var(--muted); }
.toolbar-account { margin-left: auto; font-size: .875rem; font-weight: 720; }

.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(206px, 1fr); min-height: 296px; }
.demo-workspace { padding: 1.3rem 1rem; align-self: center; }
.demo-workspace img { margin: 0 0 .4rem -.25rem; }
.demo-workspace h2 { font-size: 1.06rem; line-height: 1.35; margin-bottom: .4rem; }
.demo-workspace p { font-size: .875rem; }
.workspace-tabs { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .35rem; }
.workspace-tabs li {
  display: flex; align-items: center; gap: .55rem; width: fit-content; min-width: 6rem;
  padding: .2rem .45rem; border: 1px solid var(--line); border-radius: 5px; font-size: .875rem;
}
.workspace-mark { width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 50%; }
.workspace-mark.mail { border-radius: 2px; }

.demo-environment { min-width: 0; border-left: 1px solid var(--line); background: #fdf9f6; padding: 1rem .75rem; }
.demo-environment h2 { margin-bottom: .6rem; font-size: 1.05rem; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.account-switch button {
  border: 1px solid var(--line); border-radius: 6px; padding: .28rem .18rem;
  background: #fff; font-size: .875rem; font-weight: 630; white-space: nowrap;
}
.account-switch button[aria-pressed="true"] { background: #f6e6db; border-color: #c69e8b; }
.account-switch button[data-account="B"][aria-pressed="true"] { background: #ecf2ea; border-color: #a8b8a5; }
.account-switch span { color: var(--accent-dark); font-weight: 760; margin-right: .3rem; }
.account-switch button[data-account="B"] span { color: #45634a; }
.demo-environment dl { margin: .65rem 0 .75rem; font-size: .875rem; }
.demo-environment dl div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .3rem; padding: .32rem 0; border-bottom: 1px solid #ede2d8; }
.demo-environment dt { color: var(--muted); white-space: nowrap; }
.demo-environment dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.status::before { display: inline-block; content: ""; width: 7px; height: 7px; margin: 0 .32rem .1rem 0; background: #3a724f; border-radius: 50%; }
.demo-check { padding: .32rem .68rem; border: 0; border-radius: 6px; color: white; background: var(--accent); font-size: .875rem; font-weight: 650; }
.demo-check:hover { background: var(--accent-dark); }

.features { padding-bottom: 4rem; }
.features h2, .windows h2 { font-size: clamp(1.7rem, 3.5vw, 2.45rem); line-height: 1.25; letter-spacing: -.04em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.3rem; gap: 1rem; }
.feature-grid article { border: 1px solid var(--line); border-radius: 13px; background: var(--sheet); padding: 1.35rem; }
.feature-grid h3 { margin: 0 0 .55rem; font-size: 1.1rem; }
.windows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.75rem; align-items: center; background: #f2e8df; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 4vw, 3rem); }
.windows h2 { margin-block: .5rem .8rem; }
.windows p { max-width: 39rem; }
.windows-meta { display: grid; align-items: start; justify-items: start; gap: .55rem; }
.windows-meta .version { font-size: 1.3rem; font-weight: 720; }
.windows-meta .button { margin-top: .3rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 4rem; padding-block: 1.2rem 1.7rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 2.25rem; padding-block: 3.75rem; }
  .hero h1 br { display: none; }
  .demo { max-width: 720px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .4rem .6rem; }
  .site-header nav { gap: .95rem; }
  .hero { padding-block: 2.5rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero h1 br { display: initial; }
  .hero-actions .button { min-height: 44px; }
  .demo { padding: .65rem; border-radius: 16px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-workspace { display: none; }
  .demo-environment { border-left: 0; padding: .85rem; }
  .feature-grid, .windows { grid-template-columns: 1fr; }
  .features { padding-bottom: 2.75rem; }
  .site-footer { margin-top: 2.5rem; }
}
