/* Yunora 官网：纸和记号笔。奶油色纸、墨色字、荧光笔黄；深色是暖炭色。无外部字体，系统字体栈。 */
:root {
  color-scheme: light dark;
  --paper: #fbf7ec;
  --paper-2: #f4eedc;
  --card: #fffdf6;
  --ink: #1d1b16;
  --ink-2: #57524a;
  --rule: #e6dec6;
  --rule-2: #d4c9a8;
  --marker: #ffe26a;
  --marker-solid: #ffe26a;
  --marker-soft: #fff3b0;
  --band: #fbe9a0;
  --sticky: #fff1a0;
  --on-marker: #1d1b16;
  --link: #1d1b16;
  --focus: #1b55e0;
  --shadow: 0 1px 2px rgba(60, 45, 10, .08), 0 12px 32px -12px rgba(60, 45, 10, .28);
  --shadow-s: 0 1px 2px rgba(60, 45, 10, .1), 0 6px 14px -8px rgba(60, 45, 10, .3);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "PingFang SC", "Microsoft YaHei", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181713;
    --paper-2: #1f1d17;
    --card: #232119;
    --ink: #f0ead9;
    --ink-2: #b2ab98;
    --rule: #33302a;
    --rule-2: #4a463b;
    --marker: rgba(255, 214, 10, .38);
    --marker-soft: rgba(255, 214, 10, .16);
    --band: #2b2616;
    --sticky: #3b3417;
    --on-marker: #1d1b16;
    --link: #f0ead9;
    --focus: #8fb4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 14px 36px -12px rgba(0, 0, 0, .7);
    --shadow-s: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 14px -8px rgba(0, 0, 0, .7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: var(--marker); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 10px; }
code, pre { font-family: var(--mono); }
code { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 5px; padding: .05em .35em; font-size: .88em; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

/* ── header：像一条便签纸的黄色抬头 ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--band); border-bottom: 1px solid var(--rule-2); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { background: rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) { .nav a:hover { background: rgba(255, 255, 255, .08); } }
.nav .lang { color: var(--ink-2); }
.nav .open { background: var(--ink); color: var(--paper); font-weight: 600; margin-left: 6px; }
.nav .open:hover { background: var(--ink); opacity: .86; }
@media (max-width: 760px) {
  .top .wrap { gap: 8px; }
  .nav a.hide-s { display: none; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 460px) { .nav .open { display: none; } }

/* ── 按钮 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 14px; font: 600 17px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--marker); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--marker); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--marker-soft); }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: 15px; border-radius: 11px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* ── hero：横格纸 ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
/* 横格线单独一层再渐隐：遮罩不能盖到嵌着的编辑器 */
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px);
  background-position: 0 6px;
  -webkit-mask-image: linear-gradient(#000 86%, transparent); mask-image: linear-gradient(#000 86%, transparent); }
.hero-in { position: relative; padding-bottom: 56px; }
.eyebrow { font: 600 14px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; margin: 0 0 22px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.18; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2.35rem, 5.6vw + .4rem, 4.6rem); font-weight: 800; max-width: 15em; text-wrap: balance; }
.hl { background: linear-gradient(transparent 58%, var(--marker) 58% 93%, transparent 93%); background-repeat: no-repeat; background-size: 100% 100%; padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: clamp(1.1rem, 1.2vw + .8rem, 1.32rem); color: var(--ink-2); max-width: 34em; margin: 26px 0 0; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-note { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; min-height: 1.7em; }
.shot { margin: 0; }
.frame { border: 1px solid var(--rule-2); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.frame img { width: 100%; }
.hero-shot { margin-top: 8px; position: relative; z-index: 1; }
.hero-shot .frame { border-radius: 16px; }
.frame-live iframe { display: block; width: 100%; height: min(760px, 78vh); border: 0; background: var(--card); }
@media (max-width: 640px) {
  .hero { padding-top: 44px; }
  .frame-live iframe { height: 78vh; }
}

/* 载入动画：只做一次，reduced-motion 下关掉 */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .d1 { animation-delay: 90ms; } .d2 { animation-delay: 180ms; } .d3 { animation-delay: 270ms; } .d4 { animation-delay: 380ms; }
  .hl-sweep { background-size: 0 100%; animation: sweep .9s .55s cubic-bezier(.3, .6, .2, 1) forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { to { background-size: 100% 100%; } }

/* ── 三张便签 ── */
.notes { padding: 84px 0 40px; }
.sticky-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sticky { position: relative; background: var(--sticky); padding: 34px 26px 28px; box-shadow: var(--shadow-s); border-radius: 3px 3px 22px 3px; transform: rotate(var(--r, -1deg)); }
.sticky:nth-child(1) { --r: -1.4deg; }
.sticky:nth-child(2) { --r: .9deg; }
.sticky:nth-child(3) { --r: -.5deg; }
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 76px; height: 22px; margin-left: -38px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); transform: rotate(2deg); }
@media (prefers-color-scheme: dark) { .sticky::before { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .1); } }
.sticky h2 { font-size: 1.45rem; margin-bottom: 10px; }
.sticky p { margin: 0; color: var(--ink); opacity: .86; font-size: 16px; }
@media (max-width: 820px) { .sticky-row { grid-template-columns: 1fr; gap: 30px; } .sticky { transform: rotate(var(--r)) scale(.99); } }

/* ── 功能区 ── */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section > .wrap > h2, .section-title { font-size: clamp(1.9rem, 3.2vw + .6rem, 3rem); font-weight: 800; text-wrap: balance; }
.section-title { margin-bottom: 52px; }
.section-title.flush { margin-bottom: 0; }
.cta.center { justify-content: center; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px dashed var(--rule-2); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(1.5rem, 1.8vw + .8rem, 2.1rem); font-weight: 800; margin-bottom: 14px; text-wrap: balance; }
.feature p { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.cap { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
}

/* ── Markdown 对照 ── */
.md-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.md-col { display: flex; flex-direction: column; }
.md-label { font: 600 13px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); margin-bottom: 10px; }
.md-box { flex: 1; background: var(--card); border: 1px solid var(--rule-2); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-s); font-size: 15px; }
.md-box pre { margin: 0; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.md-box h4 { font: 800 1.45rem/1.2 var(--serif); margin: 0 0 12px; }
.md-box h5 { font: 800 1.1rem/1.2 var(--serif); margin: 14px 0 8px; }
.md-box ul { margin: 0 0 14px; padding-left: 1.2em; }
.md-box li::marker { color: var(--focus); }
.md-box table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md-box th, .md-box td { border: 1px solid var(--rule-2); padding: 6px 10px; text-align: left; }
.md-box th { background: var(--paper-2); }
.md-box mark { background: var(--marker-solid); color: #1d1b16; padding: 0 .15em; border-radius: 3px; }
@media (max-width: 640px) { .md-pair { grid-template-columns: 1fr; } }

/* ── 同步三步 ── */
.steps { list-style: none; counter-reset: s; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--rule-2); border-radius: 14px; padding: 24px 24px 26px; box-shadow: var(--shadow-s); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--marker-solid); color: #1d1b16; font: 800 16px/1 var(--serif); margin-bottom: 14px; }
.steps h3 { font: 700 1.15rem/1.35 var(--sans); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.lead { color: var(--ink-2); max-width: 40em; margin: 16px 0 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ── 小事清单 ── */
.small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--rule-2); border-radius: 14px; overflow: hidden; background: var(--card); margin: 0; padding: 0; list-style: none; }
.small-grid li { padding: 22px 22px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.small-grid li:nth-child(4n) { border-right: 0; }
.small-grid li:nth-last-child(-n+4) { border-bottom: 0; }
.small-grid b { display: block; font-size: 16px; margin-bottom: 4px; }
.small-grid span { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; display: block; }
@media (max-width: 960px) { .small-grid { grid-template-columns: repeat(2, 1fr); } .small-grid li { border-right: 1px solid var(--rule) !important; border-bottom: 1px solid var(--rule) !important; } .small-grid li:nth-child(2n) { border-right: 0 !important; } .small-grid li:nth-last-child(-n+2) { border-bottom: 0 !important; } }
@media (max-width: 520px) { .small-grid { grid-template-columns: 1fr; } .small-grid li { border-right: 0 !important; } .small-grid li:last-child { border-bottom: 0 !important; } .small-grid li:nth-last-child(2) { border-bottom: 1px solid var(--rule) !important; } }

/* ── 定价 ── */
.price-sub { color: var(--ink-2); max-width: 40em; margin: 16px 0 0; }
.notice { margin: 24px 0 0; padding: 14px 18px; border-left: 4px solid var(--marker); background: var(--marker-soft); border-radius: 0 10px 10px 0; font-size: 15.5px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); }
.plan.hot { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--marker); }
.plan h3 { font: 700 1.05rem/1.3 var(--sans); color: var(--ink-2); margin-bottom: 14px; }
.price { font: 800 2.9rem/1 var(--serif); letter-spacing: -.01em; }
.price small { font: 500 .95rem/1.4 var(--sans); color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.plan .meta { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; min-height: 3em; }
.badge { position: absolute; top: -13px; right: 18px; background: var(--marker-solid); color: #1d1b16; font: 700 13px/1 var(--sans); padding: 7px 11px; border-radius: 8px; border: 1.5px solid var(--ink); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14.5px; color: var(--ink); }
.plan li { padding-left: 1.5em; position: relative; margin-bottom: 8px; line-height: 1.55; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.plan-free .price { font-size: 2.4rem; }
.price-foot { margin: 28px 0 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 1020px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { margin-top: 40px; border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { cursor: pointer; padding: 20px 44px 20px 4px; font: 700 1.12rem/1.5 var(--sans); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--ink-2); transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { background: var(--marker-soft); }
.faq .ans { padding: 0 4px 22px; max-width: 46em; color: var(--ink-2); }
.faq .ans p { margin: 0 0 12px; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans a { color: var(--ink); }

/* ── 收尾 ── */
.closing { text-align: center; padding: 96px 0; background: var(--band); border-top: 1px solid var(--rule-2); }
.closing h2 { font-size: clamp(2rem, 3.4vw + .6rem, 3.2rem); font-weight: 800; }
.closing p { color: var(--ink-2); margin: 14px 0 28px; }

/* ── 下载页 ── */
.page-head { padding: 64px 0 24px; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--rule) 35px 36px); background-position: 0 6px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.1rem, 4vw + .5rem, 3.4rem); }
.page-head p { color: var(--ink-2); max-width: 36em; margin: 16px 0 24px; }
.ver { font: 500 14.5px/1.5 var(--mono); color: var(--ink-2); margin: 0 0 28px; }
.ver:empty { display: none; }
.page-head .wrap { padding-bottom: 20px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 44px 0 20px; }
.dl-card { background: var(--card); border: 1px solid var(--rule-2); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 6px; }
.dl-card.is-yours { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--marker); }
.dl-card h2 { font: 800 1.5rem/1.3 var(--serif); }
.dl-card .sub { color: var(--ink-2); margin: 0; font-size: 15px; }
.dl-card .hint { color: var(--ink-2); margin: 0; font-size: 13.5px; }
.dl-card .act { margin-top: 14px; }
.soon { display: inline-block; font: 600 14px/1 var(--sans); padding: 9px 14px; border: 1.5px dashed var(--rule-2); border-radius: 9px; color: var(--ink-2); }
.dl-meta { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.dl-meta code { display: block; margin-top: 6px; word-break: break-all; font-size: 12px; }
.dl-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 0 40px; }
.dl-extra .dl-card h2 { font-size: 1.3rem; }
.howto { padding: 12px 0 84px; }
.howto h2 { font: 800 1.5rem/1.3 var(--serif); margin: 36px 0 10px; }
.howto p { color: var(--ink-2); margin: 0; max-width: 44em; }
.howto .box { background: var(--card); border: 1px solid var(--rule-2); border-left: 5px solid var(--marker); border-radius: 12px; padding: 22px 24px; margin-top: 12px; }
.howto .box h2 { margin-top: 0; }
@media (max-width: 760px) { .dl-grid, .dl-extra { grid-template-columns: 1fr; } }

/* ── 文档页（隐私、条款、退款） ── */
.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(2rem, 3.4vw + .6rem, 3rem); margin-bottom: 12px; }
.doc .updated { color: var(--ink-2); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; font-weight: 800; }
.doc h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); max-width: 44em; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc hr { border: 0; border-top: 1px dashed var(--rule-2); margin: 48px 0; }
.doc .draft { margin-top: 48px; font-size: 14px; color: var(--ink-2); }

/* ── footer ── */
.foot { background: var(--paper-2); border-top: 1px solid var(--rule-2); padding: 48px 0 40px; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot .brand { font-size: 18px; }
.foot p { color: var(--ink-2); margin: 10px 0 0; max-width: 22em; }
.foot h4 { margin: 0 0 10px; font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--marker); }
.copyline { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--rule); padding-top: 22px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > div:first-child { grid-column: 1 / -1; } }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .top, .foot, .cta, .closing { display: none; } body { background: #fff; color: #000; } }
