/* Midoo翻译输入法官网 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --sunken: #f5f5f7;
  --ink: #0e1013;
  --ink2: #4b5059;
  --ink3: #8a8f98;
  --line: rgba(10, 12, 16, .08);
  --line2: rgba(10, 12, 16, .16);
  --green: #1a9f58;
  --green-ink: #13854a;
  --green-soft: #e1f3e8;
  --panel: #e9e9ec;
  --sel: #bcd6ff;
  --btn: #0e1013;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 18, 28, .04), 0 8px 20px -8px rgba(16, 18, 28, .08), 0 28px 64px -24px rgba(16, 18, 28, .18);
  --float: 0 0 0 .5px rgba(16, 18, 28, .06), 0 2px 4px rgba(16, 18, 28, .05), 0 12px 28px -8px rgba(16, 18, 28, .2);
  --lift: 0 1px 2px rgba(16, 18, 28, .04), 0 16px 36px -16px rgba(16, 18, 28, .18);
  --grad: linear-gradient(100deg, #1e9bff 0%, #7a5cff 42%, #ff5fb8 74%, #ff9f5a 100%);
  --c1: #1e9bff; --c2: #7a5cff; --c3: #ff5fb8; --c4: #ff9f5a; /* --grad 的四个色，给光晕和底板用 */
  --aura: .34;
  --glow-a: 15%;  /* 页面顶部光晕的浓度 */
  --tint-a: 9%;   /* 演示底板彩色光晕的浓度 */
  --dot: rgba(16, 18, 28, .1); /* 点阵纹理 */
  --btn-bg: linear-gradient(180deg, #2c2f36, #0e1013);
  --btn-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .2), 0 8px 18px -8px rgba(0, 0, 0, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #1b1e22;
    --sunken: #141619;
    --ink: #f2f3f5;
    --ink2: #b3b7bf;
    --ink3: #7c818a;
    --line: rgba(255, 255, 255, .09);
    --line2: rgba(255, 255, 255, .18);
    --green: #2ab86b;
    --green-ink: #4fd08a;
    --green-soft: #15301f;
    --panel: #2a2d31;
    --sel: #274a85;
    --btn: #f2f3f5;
    --btn-ink: #0e1013;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -14px rgba(0, 0, 0, .7);
    --float: 0 0 0 .5px rgba(255, 255, 255, .08), 0 1px 1px rgba(0, 0, 0, .5), 0 10px 28px -8px rgba(0, 0, 0, .8);
    --lift: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -16px rgba(0, 0, 0, .8);
    --aura: .26;
    --glow-a: 20%;
    --tint-a: 13%;
    --dot: rgba(255, 255, 255, .1);
    --btn-bg: linear-gradient(180deg, #ffffff, #e2e4e9);
    --btn-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .5), 0 8px 18px -8px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 页面顶部的彩色光晕 + 点阵：跟着页面滚走，不固定 */
body::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 940px;
  pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px) 50% 0 / 26px 26px,
    radial-gradient(46% 52% at 16% 2%, color-mix(in srgb, var(--c1) var(--glow-a), transparent), transparent 72%),
    radial-gradient(40% 48% at 50% -4%, color-mix(in srgb, var(--c2) var(--glow-a), transparent), transparent 72%),
    radial-gradient(46% 52% at 86% 4%, color-mix(in srgb, var(--c3) var(--glow-a), transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 18%, transparent);
  mask-image: linear-gradient(#000 18%, transparent);
}
::selection { background: color-mix(in srgb, var(--green) 24%, transparent); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .f { fill: currentColor; stroke: none; }

.wrap { width: min(1080px, 100% - 64px); margin-inline: auto; }

kbd {
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em; padding: 0 .4em; margin: 0 .1em;
  font: 500 .82em/1 var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--sunken) 70%, var(--surface)));
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: 7px;
  box-shadow: 0 1px 1px rgba(16, 18, 28, .04);
  vertical-align: .08em;
}

/* 两套内容：学英语 / 和国外客户沟通 */
[data-mode="learn"] .for-work, [data-mode="work"] .for-learn { display: none !important; }
main { display: flex; flex-direction: column; }
#learn { order: 1; } #translate { order: 2; } #reply { order: 3; } #global { order: 4; }
#typing { order: 5; } #privacy { order: 6; } #keys { order: 7; } #download { order: 8; }
[data-mode="work"] #global { order: 1; }
[data-mode="work"] #learn { order: 4; }
[data-mode="work"] .nav-links a[href="#learn"] { order: 1; }
[data-mode="work"] .nav-links a[href="#typing"], [data-mode="work"] .nav-links a[href="#privacy"] { order: 2; }

.ask { display: none; }
html.asking { overflow: hidden; }
.asking .ask {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 28px 16px; overflow: auto;
  background:
    radial-gradient(50% 44% at 22% 0%, color-mix(in srgb, var(--c1) var(--glow-a), transparent), transparent 72%),
    radial-gradient(50% 44% at 80% 0%, color-mix(in srgb, var(--c3) var(--glow-a), transparent), transparent 72%),
    color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.ask-in { width: min(720px, 100%); text-align: center; animation: rise .32s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.ask-in img { border-radius: 23%; box-shadow: 0 2px 4px rgba(16, 18, 28, .08), 0 16px 34px -12px color-mix(in srgb, var(--c2) 55%, transparent); }
.ask h2 { margin-top: 22px; font-size: clamp(24px, 3.6vw, 36px); }
.ask-in > p { margin-top: 10px; color: var(--ink2); }
.ask-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ask-opt {
  display: flex; flex-direction: column; gap: 5px;
  padding: 12px 12px 22px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--lift);
  transition: border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.ask-opt:hover, .ask-opt:focus-visible {
  border-color: var(--green); transform: translateY(-4px);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent), var(--shadow);
}
.ask-opt b { margin: 14px 12px 0; font-size: 21px; }
.ask-opt > span:last-child { margin: 0 12px; font-size: 14.5px; color: var(--ink2); }
.ask-opt .mini {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 112px; padding: 0 14px;
  background:
    radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--c1) var(--tint-a), transparent), transparent 70%),
    var(--sunken);
  border-radius: 16px;
}
.ask-opt[data-pick="work"] .mini { background: radial-gradient(90% 90% at 50% 0%, color-mix(in srgb, var(--c3) var(--tint-a), transparent), transparent 70%), var(--sunken); }
.ask-opt .mini .cand { padding: 6px 12px 7px; }
.ask-opt .mini:has(.m-zh) { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 20px; }
.m-zh { font-size: 14px; color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line2); }
.m-en { font-size: 16.5px; line-height: 1.35; font-weight: 600; }
.ask-skip { margin-top: 24px; padding: 6px 10px; font-size: 13.5px; color: var(--ink3); text-decoration: underline; text-underline-offset: 3px; }
.ask-skip:hover { color: var(--ink2); }

.mode-seg {
  display: inline-flex; padding: 4px; margin-bottom: 44px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mode-seg button { padding: 7px 20px; font-size: 14px; color: var(--ink2); border-radius: 999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.mode-seg button:hover { color: var(--ink); }
[data-mode="learn"] .mode-seg [data-pick="learn"], [data-mode="work"] .mode-seg [data-pick="work"] {
  background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 0 0 .5px var(--line2), 0 1px 2px rgba(16, 18, 28, .08), 0 4px 10px -2px rgba(16, 18, 28, .12);
}
.reask { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; }
.brand img { border-radius: 23%; box-shadow: 0 1px 2px rgba(16, 18, 28, .1), 0 4px 10px -4px color-mix(in srgb, var(--c2) 60%, transparent); }
.nav-links { display: flex; gap: 6px; margin-left: auto; font-size: 14px; color: var(--ink2); }
.nav-links a { padding: 6px 13px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.nav-links a:hover { color: var(--ink); background: var(--line); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.btn.primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--btn-shadow); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow), 0 12px 26px -12px rgba(0, 0, 0, .45); }
.btn.ghost { border: 1px solid var(--line2); color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 18, 28, .04); }
.btn.ghost:hover { background: var(--sunken); border-color: color-mix(in srgb, var(--ink) 26%, transparent); transform: translateY(-1px); }
.btn:active, .btn.primary:active, .btn.ghost:active { transform: scale(.97); }
.btn.sm { height: 34px; padding: 0 16px; font-size: 13.5px; }
.release-entry { display: inline-flex; align-items: center; gap: 5px; margin-top: 22px; color: var(--green-ink); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.release-entry:hover { color: var(--green); }

/* 首屏 */
.hero { text-align: center; padding: 88px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 11px;
  font-size: 13px; line-height: 1.5; font-weight: 600; letter-spacing: .04em;
  color: var(--green-ink); background: var(--green-soft);
  border-radius: 999px;
}
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
h1 {
  margin-top: 26px;
  font-size: clamp(40px, 6.8vw, 84px);
  line-height: 1.1; font-weight: 700; letter-spacing: -.025em;
  text-wrap: balance;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lead {
  max-width: 620px; margin: 30px auto 0;
  font-size: clamp(16px, 1.75vw, 20px); line-height: 1.7; color: var(--ink2);
  text-wrap: pretty;
}
.platform-support { margin-top: 14px; color: var(--ink3); font-size: 13px; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-cta .btn { min-width: 212px; height: 54px; padding: 0 32px; font-size: 17px; }
.hero-meta { margin-top: 18px; color: var(--ink3); font-size: 13.5px; }
.hero-meta span + span::before { content: "·"; margin: 0 .5em; }
.keys-note { max-width: 700px; margin: 18px 0 0; color: var(--ink2); font-size: 14px; }

/* 演示设备标记：只切换下面的演示，不是下载入口（下载在上面的按钮和页面底部） */
.plats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 72px; }
.plats-label { margin-right: 4px; color: var(--ink3); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; }
.plats button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 15px;
  font-size: 14px; font-weight: 600; color: var(--ink2);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--line2); border-radius: 999px;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plats button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
[data-show="mac"] .plats [data-show="mac"], [data-show="phone"] .plats [data-show="phone"] {
  color: var(--green-ink); border-color: color-mix(in srgb, var(--green) 70%, transparent); background: var(--green-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 12%, transparent);
}
.plats svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* 首屏演示按设备切换：Mac 窗口 / 手机键盘 */
[data-show="phone"] #demo, [data-show="phone"] #wdemo { display: none !important; }
[data-show="mac"] #pdemo { display: none; }
.pstage { max-width: 340px; margin-top: 44px; }
.phone {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: 600px; text-align: left;
  background: var(--sunken);
  border-radius: 42px;
  /* 机身：内描边 + 一圈浅色边框 + 外描边 */
  box-shadow: 0 0 0 1px var(--line2), 0 0 0 8px var(--surface), 0 0 0 9px var(--line2), var(--shadow),
    0 50px 90px -40px color-mix(in srgb, var(--c2) 45%, transparent);
}
.p-head { display: flex; align-items: center; gap: 10px; padding: 34px 18px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.p-head .avatar { width: 30px; height: 30px; font-size: 13px; }
.p-head b { font-size: 15px; }
.p-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.p-msg { max-width: 82%; padding: 8px 12px; font-size: 14.5px; line-height: 1.45; background: var(--surface); border-radius: 14px 14px 14px 4px; animation: pop .18s ease-out; }
.p-msg.out { align-self: flex-end; color: #fff; background: var(--green); border-radius: 14px 14px 4px 14px; }
.p-input { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; background: var(--surface); border-top: 1px solid var(--line); }
.p-input p { flex: 1; min-height: 36px; padding: 7px 10px; font-size: 15px; line-height: 1.45; background: var(--sunken); border-radius: 10px; word-break: break-word; }
.p-input .comp { text-decoration: underline; text-underline-offset: 4px; }
#pText { transition: opacity .25s ease; }
#pText.dim { opacity: .35; }
.p-send { flex: none; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: #fff; background: var(--green); border-radius: 8px; transition: transform .1s ease; }
.p-send.tap { transform: scale(.9); }
.p-kb { padding: 0 4px 22px; background: var(--panel); }
.p-bar { display: flex; align-items: center; height: 50px; padding: 0 6px; }
.p-cands { display: flex; align-items: flex-end; gap: 4px; min-width: 0; overflow: hidden; }
.p-cands .cand { flex: none; padding: 3px 8px 4px; }
.p-cands .cand.on { color: var(--ink); background: none; }
.p-cands .cand.on .en { color: var(--green-ink); }
.p-cands .cand .zh { font-size: 17px; }
.p-cands .cand .zh i { display: none; }
.p-cands .cand.tap { background: var(--line2); }
.p-cands .cand.swipe .en { color: var(--green-ink); animation: swipeUp .5s ease-in forwards; }
@keyframes swipeUp { to { transform: translateY(-34px); opacity: 0; } }
.p-trans { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; padding: 4px 4px 4px 2px; background: var(--surface); border-radius: 10px; animation: pop .18s ease-out; }
.p-trans .spk { width: 28px; height: 28px; }
.p-en { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; border-radius: 6px; transition: background .12s ease; }
.p-en.wait { font-weight: 400; color: var(--ink3); }
.p-en.tap { background: var(--sel); }
.p-act { flex: none; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--green-ink); background: var(--green-soft); border-radius: 7px; transition: transform .1s ease; }
.p-act.tap { transform: scale(.9); }
.p-keys { display: flex; flex-direction: column; gap: 9px; padding: 4px 2px 0; }
.p-keys div { display: flex; justify-content: center; gap: 5px; }
.p-keys span {
  flex: 0 0 calc((100% - 45px) / 10); height: 40px;
  display: grid; place-items: center;
  font-size: 17px; color: var(--ink);
  background: var(--surface); border-radius: 6px;
  box-shadow: 0 1px 0 var(--line2);
  transition: background .08s ease, transform .08s ease;
}
.p-keys span.w { flex-basis: calc((100% - 45px) / 10 * 1.45); font-size: 13px; }
.p-keys span.sp { flex: 1; font-size: 13px; color: var(--ink3); }
.p-keys span.hit { background: var(--line2); transform: scale(.94); }
.p-finger { position: absolute; z-index: 3; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: rgba(26, 159, 88, .28); border: 2px solid rgba(26, 159, 88, .55); border-radius: 50%; pointer-events: none; transition: left .35s ease, top .35s ease; }

/* 安装步骤分页 */
.itabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.itabs button { padding: 7px 20px; font-size: 14px; color: var(--ink2); border-radius: 999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.itabs button:hover { color: var(--ink); }
.steps-heading [data-iname] { display: none; }
[data-itab="mac"] [data-iname="mac"], [data-itab="ios"] [data-iname="ios"], [data-itab="android"] [data-iname="android"] { display: inline; }
.steps-switch { margin-top: 12px; }
.steps-switch summary { display: inline-block; padding: 4px 8px; color: var(--ink3); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; list-style: none; border-radius: 8px; }
.steps-switch summary::-webkit-details-marker { display: none; }
.steps-switch summary:hover { color: var(--ink2); }
.steps-switch[open] > summary { display: none; }
.steps-switch .itabs { margin-top: 6px; }
.ipanel { display: none; }
[data-itab="mac"] [data-ipanel="mac"], [data-itab="ios"] [data-ipanel="ios"], [data-itab="android"] [data-ipanel="android"] { display: block; }
[data-itab="mac"] [data-itab="mac"], [data-itab="ios"] [data-itab="ios"], [data-itab="android"] [data-itab="android"] {
  background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: 0 0 0 .5px var(--line2), 0 1px 2px rgba(16, 18, 28, .08), 0 4px 10px -2px rgba(16, 18, 28, .12);
}
.ipanel .note { margin-top: 56px; }
.steps a { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 按设备给下载入口：本机对应的平台做成大卡排第一，其余平台缩成一排小卡 */
.os-desktop, .os-android, .os-ios, .os-windows, .os-other { display: none; }
[data-os="desktop"] .os-desktop, [data-os="android"] .os-android, [data-os="ios"] .os-ios, [data-os="windows"] .os-windows, [data-os="other"] .os-other { display: revert; }
[data-os="desktop"] .dl-qr.os-desktop, [data-os="windows"] .dl-qr.os-desktop, [data-os="other"] .dl-qr.os-desktop { display: flex; }
.dl-for { margin-top: 44px; font-size: 14px; font-weight: 600; color: var(--green-ink); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 18px auto 0; }
[data-os="windows"] .download-grid, [data-os="other"] .download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 小卡（非本机平台） */
.dl-card {
  display: flex; flex-direction: column; min-width: 0; padding: 22px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: left;
  box-shadow: 0 1px 2px rgba(16, 18, 28, .03);
  transition: translate .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.dl-card:hover { translate: 0 -3px; box-shadow: var(--lift); border-color: var(--line2); }
.dl-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.dl-card h3 svg { width: 20px; height: 20px; flex: none; }
.dl-card h3 + p { margin: 10px 0 20px; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.dl-card .btn { order: 2; justify-content: center; width: 100%; height: 42px; margin-top: auto; padding-inline: 12px; font-size: 14.5px; text-align: center; }
/* 大卡（本机平台）：占满一行，另外两个平台在下一行并排 */
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) {
  order: -1; grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-items: center;
  padding: 30px 32px;
  border-color: color-mix(in srgb, var(--green) 80%, transparent); border-radius: 26px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent), var(--lift);
}
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) h3 { grid-column: 1; gap: 12px; font-size: 26px; letter-spacing: -.01em; }
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) h3 svg { width: 30px; height: 30px; }
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) h3::after { content: "推荐"; flex: none; padding: 2px 9px; white-space: nowrap; color: var(--green-ink); background: var(--green-soft); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) h3 + p { grid-column: 1; margin: 12px 0 0; font-size: 14px; }
.dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) .btn { grid-column: 2; grid-row: 1 / 3; width: auto; min-width: 208px; height: 54px; margin: 0; padding-inline: 26px; font-size: 16.5px; background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: var(--btn-shadow); }
.download-grid .dl-qr {
  order: 2; grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: center; gap: 20px;
  padding: 20px 24px; text-align: left;
  border: 1px solid var(--line); border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.dl .dl-qr img { width: 104px; height: 104px; padding: 7px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(16, 18, 28, .04); border: 1px solid var(--line); }
.dl-qr p { font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.dl-qr br { display: none; }
.dl-qr b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14.5px; }
.invite-alert { display: block; max-width: 880px; margin: 28px auto 0; padding: 14px 22px; border: 1px solid color-mix(in srgb, var(--green) 26%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--green-soft) 70%, transparent); color: var(--green-ink); font-size: 14.5px; font-weight: 600; line-height: 1.65; text-wrap: pretty; }
/* 用户群：放在页脚 */
.beta-group { display: flex; align-items: center; gap: 22px; max-width: 520px; padding: 20px 20px 20px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 18, 28, .03); text-align: left; }
.beta-group h3 { font-size: 16px; color: var(--ink); }
.beta-group p { margin-top: 8px; color: var(--ink2); font-size: 13px; line-height: 1.65; }
.beta-group .beta-expiry { color: var(--green-ink); font-weight: 600; }
.beta-group img { display: block; width: 156px; height: auto; flex: 0 0 156px; }

/* 首屏演示 */
.stage { position: relative; max-width: 860px; margin: 40px auto 0; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; z-index: -1;
  inset: 8% 0 2%;
  background: var(--grad);
  filter: blur(80px); opacity: var(--aura);
  border-radius: 50%;
}
.win {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 44px 90px -44px color-mix(in srgb, var(--c2) 42%, transparent);
}
.winbar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sunken) 80%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--line);
  border-radius: 17px 17px 0 0;
}
.winbar i { width: 12px; height: 12px; border-radius: 50%; background: var(--line2); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.winbar i:nth-child(1) { background: #ff5f57; }
.winbar i:nth-child(2) { background: #febc2e; }
.winbar i:nth-child(3) { background: #28c840; }
.winbar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--ink3); }
.editor { position: relative; height: 228px; padding: 30px 34px; }
.line { font-size: 23px; line-height: 1.5; min-height: 1.5em; white-space: pre-wrap; word-break: break-word; }
.line .comp { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
#dText { transition: opacity .25s ease; }
#dText.dim { opacity: .35; }
.caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 1px;
  background: var(--green); vertical-align: -.16em;
  animation: blink 1.1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 候选窗 */
.ime {
  position: absolute; z-index: 2;
  display: flex; align-items: flex-end; gap: 14px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--float);
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.cands { display: flex; align-items: flex-end; gap: 4px; min-width: 0; }
.cand {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 5px 11px 6px; border-radius: 8px;
  white-space: nowrap;
}
.cand .en { font-size: 12.5px; line-height: 1.3; min-height: 1.3em; color: var(--ink3); }
.cand .zh { font-size: 18px; line-height: 1.35; font-weight: 500; }
.cand .zh i { font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink3); margin-right: 5px; }
.cand .zh em { font-style: normal; font-size: 11px; font-weight: 400; color: var(--ink3); margin-left: 5px; }
.cand.on {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 86%, #fff), var(--green));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 3px color-mix(in srgb, var(--green) 45%, transparent);
}
.p-cands .cand.on { box-shadow: none; }
.cand.on .en, .cand.on .zh i { color: rgba(255, 255, 255, .86); }
.ime .py { font: 13px/2.1 var(--mono); color: var(--ink2); white-space: nowrap; }
.ime.static { position: static; animation: none; box-shadow: var(--float); width: fit-content; }

/* 英文在下 */
.below .cand { flex-direction: column-reverse; }
.below .cand .en { font-size: 17px; font-weight: 500; color: var(--ink); min-height: 1.35em; line-height: 1.35; }
.below .cand .zh { font-size: 13px; font-weight: 400; color: var(--ink3); }
.below .cand.on .en { color: #fff; }
.below .cand.on .zh { color: rgba(255, 255, 255, .86); }

/* 整句翻译条 */
.tstrip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 68px);
  padding: 9px 12px 9px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--float);
  animation: pop .18s ease-out;
}
.tag { flex: none; padding: 3px 7px; font-size: 11px; line-height: 1.3; color: #fff; background: var(--green); border-radius: 5px; }
.tbody { display: flex; flex-direction: column; min-width: 0; }
.tbody small { font-size: 12px; color: var(--ink3); line-height: 1.4; }
.tbody span { font-size: 17px; font-weight: 600; line-height: 1.35; }
.spk {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--green-ink);
  transition: background .15s ease, transform .15s ease;
}
.spk svg { width: 19px; height: 19px; }
.spk:hover { background: var(--green-soft); }
.spk:active, .spk.playing { transform: scale(.9); }

.keyhint {
  position: absolute; right: 26px; bottom: 22px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--ink3);
  animation: pop .18s ease-out;
}
.keyhint kbd { width: 40px; height: 40px; font-size: 18px; border-radius: 10px; transition: transform .1s ease, background .1s ease, color .1s ease, border-color .1s ease; }
.keyhint.down kbd { transform: translateY(2px) scale(.94); background: var(--green); border-color: var(--green); color: #fff; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.chips button {
  padding: 8px 16px; font-size: 13.5px; color: var(--ink2);
  border: 1px solid var(--line2); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.chips button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 26%, transparent); }
.chips button[aria-selected="true"] {
  background: var(--btn-bg); border-color: transparent; color: var(--btn-ink); font-weight: 600;
  box-shadow: var(--btn-shadow);
}

/* 段落 */
.sec { padding: 208px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 88px; }
h2 {
  margin-top: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2; font-weight: 700; letter-spacing: -.02em;
  text-wrap: balance;
}
.sub { max-width: 640px; margin-top: 24px; font-size: 18px; line-height: 1.7; color: var(--ink2); text-wrap: pretty; }
h3 { font-size: 19px; line-height: 1.4; font-weight: 650; letter-spacing: -.005em; }

/* 卡片 */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 96px 40px; }
.card { display: flex; flex-direction: column; }
.card h3 { margin: 32px 6px 0; font-size: 22px; }
.card > p { margin: 12px 6px 0; max-width: 30em; color: var(--ink2); }
.bento .card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.bento .card:last-child .mock { grid-row: 1 / span 2; }
.bento .card:last-child h3 { align-self: end; margin-top: 0; }
.bento .card:last-child > p { align-self: start; }
/* 演示底板：浅灰底 + 顶部一抹彩色光晕（--tint 各自不同）+ 中间淡出的点阵 + 一圈细描边 */
.mock {
  position: relative; isolation: isolate;
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--tint, var(--c2)) var(--tint-a), transparent), transparent 72%),
    var(--sunken);
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mock::before {
  content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px) 50% 50% / 22px 22px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 10%, transparent);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 10%, transparent);
}
.mock-reply::before { display: none; }
.mock-cands, .mock-select { --tint: var(--c1); }
.mock-speak, .mock-shot { --tint: var(--green); }
.mock-cmd, .mock-reply { --tint: var(--c2); }
.mock-swap { --tint: var(--c3); }
.mock-word { --tint: var(--c4); }
.card .mock {
  flex: none; height: 340px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 48px 28px;
  overflow: hidden;
}

/* 上屏自动朗读 */
.mock-speak { gap: 16px !important; }
.sline { min-height: 1.5em; font-size: 24px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.sline .comp { font-weight: 400; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sbub {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 12px;
  color: var(--green-ink); background: var(--green-soft);
  border-radius: 999px;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .2, 1);
}
.sbub svg { width: 20px; height: 20px; }
.sbub b { font-size: 18px; line-height: 1.2; }
.sbub.hide { opacity: 0; transform: translateY(6px) scale(.96); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 18px; }
.wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; opacity: .75; }
.sbub.live .wave i { animation: wave .7s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s !important; }
.wave i:nth-child(3) { animation-delay: .2s !important; }
.wave i:nth-child(4) { animation-delay: .3s !important; }
.wave i:nth-child(5) { animation-delay: .4s !important; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }

.seg { display: inline-flex; padding: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 999px; }
.seg button { padding: 5px 15px; font-size: 13px; color: var(--ink2); border-radius: 999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 .5px var(--line2), 0 1px 2px rgba(16, 18, 28, .08), 0 3px 8px -2px rgba(16, 18, 28, .12); }
.mock-cands { container-type: inline-size; }
.mock-cands .ime { max-width: 100%; }
@container (max-width: 560px) {
  .mock-cands .py { display: none; }
  .mock-cands .ime { padding-right: 6px; }
}
@container (max-width: 470px) {
  .mock-cands .cand:nth-child(n+4) { display: none; }
}
@container (max-width: 360px) {
  .mock-cands .cand:nth-child(n+3) { display: none; }
}
@container (max-width: 700px) { .mock-cands.below .py { display: none; } }
@container (max-width: 580px) { .mock-cands.below .cand:nth-child(n+4) { display: none; } }
@container (max-width: 430px) { .mock-cands.below .cand:nth-child(n+3) { display: none; } }

.flow { display: flex; align-items: center; gap: 12px; color: var(--ink3); }
.flow svg { width: 26px; height: 13px; }
.flow kbd { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; margin: 0; }
.flow .out { font: 600 22px/1.2 var(--sans); color: var(--ink); border-bottom: 2px solid var(--green); padding-bottom: 2px; }

.mock-swap { text-align: center; gap: 12px !important; }
.mock-swap .before { font-size: 17px; color: var(--ink3); }
.mock-swap .after { max-width: 290px; font-size: 19px; line-height: 1.4; font-weight: 600; }

/* 翻译卡片 */
.tcard {
  width: 100%; max-width: 420px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--float);
  text-align: left;
}
.tcard .src { font-size: 15px; line-height: 1.6; color: var(--ink2); }
.tcard mark { padding: 1px 5px; border-radius: 5px; background: var(--green-soft); color: var(--green-ink); font-weight: 600; }
.word { margin-top: 12px; padding: 12px 14px; background: var(--green-soft); border-radius: 10px; }
.whead { display: flex; align-items: center; gap: 8px; }
.whead b { font-size: 18px; }
.whead span { font-size: 15px; color: var(--ink2); }
.word p { font-size: 15px; }
.word small { font-size: 12.5px; color: var(--ink2); }
.label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--green-ink); }
.result p { font-size: 15.5px; line-height: 1.6; }
.result small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ink3); }
.latin { font-family: var(--sans); }

/* 左右排 */
.row { display: grid; grid-template-columns: 1fr 1.12fr; gap: 96px; align-items: center; }
.row + .row { margin-top: 168px; }
.row.flip .row-text { order: 2; }
.row-text h3 { font-size: 28px; line-height: 1.3; letter-spacing: -.015em; }
.row-text > p { margin-top: 20px; font-size: 16.5px; color: var(--ink2); }
.ticks { margin-top: 32px; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 32px; font-size: 15px; color: var(--ink2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: 9px;
  width: 8px; height: 4.5px;
  border-left: 1.8px solid var(--green-ink); border-bottom: 1.8px solid var(--green-ink);
  transform: rotate(-45deg);
}
.row > .mock { padding: 56px 48px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }

.pill {
  display: inline-flex; align-self: center;
  padding: 0 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 86%, #fff), var(--green)); color: #fff;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), var(--float);
}
.pill { width: max-content; }
.pill button { position: relative; padding: 7px 14px; white-space: nowrap; font-size: 13.5px; font-weight: 600; opacity: .72; transition: opacity .15s ease; }
.pill button + button::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: rgba(255, 255, 255, .35); }
.pill button:hover, .pill button[aria-selected="true"] { opacity: 1; }
.pill button[aria-selected="true"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: #fff; }

.mock-select .doc { font-size: 16px; line-height: 1.75; color: var(--ink); }
.sel { background: var(--sel); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 3px 0; }
.mock-select .tcard, .mock-shot .tcard { align-self: center; min-height: 118px; }

.shot {
  position: relative; align-self: center;
  width: 100%; max-width: 420px;
  padding: 20px 22px;
  border: 1.5px dashed var(--green);
  border-radius: 6px;
  background: color-mix(in srgb, var(--green) 6%, transparent);
  margin-top: 26px;
}
.shot b { display: block; font-size: 18px; }
.shot p { font-size: 15px; color: var(--ink2); }
.shot .pill { position: absolute; left: 50%; top: 0; transform: translate(-50%, -62%); }

/* 帮我回复面板 */
.row > .mock-reply { padding: 0; gap: 0; justify-content: flex-start; overflow: hidden; }
.r-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px 16px; border-bottom: 1px solid var(--line); }
.r-chat .box { align-self: stretch; }
.r-gap { position: relative; align-self: stretch; height: 68px; }
.r-chip {
  position: absolute; left: 8px; bottom: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px 6px 9px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--green); border-radius: 999px; box-shadow: var(--float);
}
.r-chip svg { width: 16px; height: 16px; }
.r-chip.down { transform: scale(.92); }
.r-panel { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 16px; }
.mock-reply .bub, .r-chip, .r-panel, .replies li, .replies li small { transition: opacity .28s ease, transform .28s cubic-bezier(.2, .7, .2, 1); }
.mock-reply .hide { opacity: 0; transform: translateY(8px); }
.mock-reply .replies { min-height: 232px; align-content: start; }
.rhead { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.rhead svg { width: 20px; height: 20px; color: var(--green); }
.quote { padding-left: 11px; border-left: 3px solid var(--green); font-size: 14.5px; color: var(--ink2); }
.tones { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; width: fit-content; max-width: 100%; background: var(--line); border-radius: 999px; }
.tones button { padding: 5px 13px; font-size: 13.5px; color: var(--ink2); border-radius: 999px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.tones button:hover { color: var(--ink); }
.tones button[aria-selected="true"] { background: var(--green); color: #fff; font-weight: 600; }
.replies { display: grid; gap: 2px; counter-reset: r; }
.replies li {
  counter-increment: r;
  display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start;
  padding: 11px 12px; border-radius: 11px;
}
.replies li::before { content: counter(r); font-size: 13px; line-height: 1.75; color: var(--ink3); }
.replies li p { font-size: 15.5px; line-height: 1.5; font-weight: 500; }
.replies li small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.replies li > span { font-size: 12px; line-height: 2; color: var(--ink3); white-space: nowrap; }
.replies li.on { background: var(--green-soft); }
.replies li.on::before, .replies li.on > span { color: var(--green-ink); font-weight: 600; }
.rfoot { margin-top: auto; padding-top: 6px; text-align: center; font-size: 12px; color: var(--ink3); }

/* 对外沟通 */
.num {
  flex: none; display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  font-size: 13px; font-weight: 600; line-height: 1;
  color: var(--green-ink); background: var(--green-soft);
  border-radius: 50%;
}
.flow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; }
.flow3 li { display: flex; gap: 14px; }
.flow3 .num { width: 30px; height: 30px; font-size: 15px; }
.flow3 h3 { font-size: 20px; line-height: 30px; }
.flow3 p { margin-top: 10px; font-size: 15px; color: var(--ink2); }

/* 外贸版首屏：客户聊天窗口 */
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 24px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; line-height: 1.3; }
.chat-head small { font-size: 12px; color: var(--ink3); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #1e9bff, #7a5cff); border-radius: 50%; }
.wbody { min-height: 304px; padding: 20px 24px; background: var(--sunken); }
.wscene { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bub { max-width: 88%; padding: 11px 14px; font-size: 15.5px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; }
.c-stage { position: relative; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bub.out { position: absolute; top: 0; right: 0; color: #fff; background: var(--green); border-color: transparent; border-radius: 16px 4px 16px 16px; }
.wchat .bub, .wchat .pill, .wchat .tcard, .wchat .wpanel, .wchat .r-chip, .wpanel li { transition: opacity .28s ease, transform .28s cubic-bezier(.2, .7, .2, 1); }
.wchat .hide { opacity: 0; transform: translateY(8px); }
.pill.demo { align-self: flex-start; margin-left: 14px; }
.pill.demo span { position: relative; padding: 6px 13px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: .72; transition: opacity .15s ease; }
.pill.demo span + span::before { content: ""; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: rgba(255, 255, 255, .35); }
.pill.demo span.on { opacity: 1; }
.pill.demo span.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: #fff; }
.wscene .tcard { max-width: 88%; width: auto; min-height: 0; align-self: flex-start; padding: 13px 15px; }
.wscene .tcard .label { margin-bottom: 3px; }
.wscene .tcard p { font-size: 15px; }

.imgbub { padding: 8px; }
.po { position: relative; min-width: 252px; padding: 14px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.po b { display: block; font-size: 15px; }
.po p { font: 13px/1.7 var(--mono); color: var(--ink2); }
.shotsel {
  position: absolute; inset: -4px;
  border: 1.5px dashed var(--green); border-radius: 4px;
  background: color-mix(in srgb, var(--green) 9%, transparent);
  transform-origin: 0 0; transform: scale(0); opacity: 0;
  transition: transform .55s cubic-bezier(.3, .7, .2, 1), opacity .12s ease;
}
.shotsel.on { transform: none; opacity: 1; }

.wpanel { align-self: stretch; max-width: 600px; padding: 12px 10px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--float); }
.wpanel .rhead { padding: 0 8px 6px; font-size: 14.5px; }
.wpanel .rhead svg { width: 17px; height: 17px; }
.wpanel .rhead small { margin-left: auto; font-size: 12px; color: var(--ink3); }
.wpanel .replies li { padding: 8px 9px; }
.wpanel .replies li p { font-size: 14.5px; line-height: 1.45; }

.winput { position: relative; display: grid; gap: 10px; padding: 16px 24px 14px; border-top: 1px solid var(--line); }
.winput .ime { top: auto; bottom: calc(100% - 8px); left: 24px; max-width: calc(100% - 48px); overflow: hidden; }
.winput .r-chip { left: 30px; bottom: calc(100% - 8px); }
.winput .comp { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.box { display: flex; align-items: flex-start; gap: 11px; min-height: 74px; padding: 11px 11px 11px 14px; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; }
.winput .box { min-height: 50px; align-items: center; }
.boxtext { flex: 1; font-size: 15.5px; line-height: 1.6; font-weight: 500; }
#wText { transition: opacity .2s ease; }
.box.dim #wText { opacity: .3; }
.send { flex: none; align-self: flex-end; display: grid; place-items: center; width: 30px; height: 30px; color: #fff; background: var(--green); border-radius: 50%; transition: transform .1s ease; }
.send svg { width: 16px; height: 16px; stroke-width: 2.2; }
.send.down { transform: scale(.82); }
.chat-keys { display: flex; align-items: center; gap: 9px; height: 32px; font-size: 13px; color: var(--ink3); transition: opacity .2s ease; }
.chat-keys.off { opacity: 0; }
.chat-keys kbd { width: 32px; height: 32px; margin: 0; font-size: 15px; border-radius: 8px; transition: transform .1s ease, background .1s ease, color .1s ease, border-color .1s ease; }
.chat-keys.down kbd { transform: translateY(2px) scale(.94); background: var(--green); border-color: var(--green); color: #fff; }

.compare { display: grid; gap: 24px; margin-top: 120px; padding: 52px 56px; background: var(--sunken); border-radius: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.cmp { display: flex; align-items: center; gap: 22px; }
.cmp > b { flex: none; width: 2.2em; font-size: 15px; }
.cmp ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.cmp li { display: flex; align-items: center; padding: 6px 13px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
.cmp li + li { margin-left: 30px; position: relative; }
.cmp li + li::before { content: "→"; position: absolute; left: -22px; color: var(--ink3); }
.cmp.old > b { color: var(--ink3); }
.cmp.old li { color: var(--ink3); border: 1px dashed var(--line2); }
.cmp.new li { color: var(--green-ink); font-weight: 600; background: var(--green-soft); }
.scenes { margin-top: 120px; }
.fine { margin-top: 56px; font-size: 13px; color: var(--ink3); }

/* 打字：一格一张卡片 */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile, .plain {
  padding: 30px 28px 32px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--sunken) 55%, var(--surface)));
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 18, 28, .03);
}
.tile:hover, .plain:hover { translate: 0 -4px; box-shadow: var(--lift); border-color: var(--line2); }
.tile h3 { font-size: 20px; }
.tile p { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.ex { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 22px; padding: 9px 14px; font-size: 15px; background: var(--sunken); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.ex + .ex { margin-top: 8px; }
.ex code { font: 13px/1.6 var(--mono); color: var(--ink3); }
.ex code::after { content: "→"; margin-left: 10px; font-family: var(--sans); color: var(--green); }
.ex span { font-weight: 600; }

/* 隐私 */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plain svg { width: 48px; height: 48px; padding: 11px; color: var(--green-ink); background: var(--green-soft); border-radius: 14px; }
.plain h3 { margin-top: 22px; font-size: 20px; }
.plain p { margin-top: 10px; font-size: 15px; color: var(--ink2); }

/* 快捷键：一张卡片，两列，行间细线 */
.keys {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 72px;
  padding: 10px 40px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--sunken) 55%, var(--surface)));
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 1px 2px rgba(16, 18, 28, .03);
}
.keys > div { display: flex; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.keys > div:nth-last-child(-n+2) { border-bottom: 0; }
.keys dt { flex: none; width: 112px; white-space: nowrap; }
.keys dt kbd { height: 32px; min-width: 32px; font-size: 14px; margin: 0 2px 0 0; border-radius: 8px; }
.keys dd { font-size: 15px; color: var(--ink2); }

/* 下载 */
.dl {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: 136px 40px 120px;
  background: var(--sunken);
  border-radius: 40px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.dl::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.6px) 50% 0 / 24px 24px,
    radial-gradient(44% 62% at 20% 0%, color-mix(in srgb, var(--c1) var(--glow-a), transparent), transparent 72%),
    radial-gradient(40% 58% at 50% -8%, color-mix(in srgb, var(--c2) var(--glow-a), transparent), transparent 72%),
    radial-gradient(44% 62% at 80% 0%, color-mix(in srgb, var(--c3) var(--glow-a), transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.dl img { border-radius: 23%; box-shadow: 0 2px 4px rgba(16, 18, 28, .08), 0 22px 44px -14px color-mix(in srgb, var(--c2) 60%, transparent); }
.dl h2 { margin-top: 32px; }
.dl .sub { margin: 16px auto 0; }
.steps-heading { margin-top: 80px; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 900px; margin: 32px auto 0; text-align: left; }
.steps li { display: flex; gap: 14px; }
.steps b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 14px; color: var(--green-ink); background: var(--green-soft); border-radius: 50%; }
.steps h3 { font-size: 16px; line-height: 28px; }
.steps p { margin-top: 8px; font-size: 14px; color: var(--ink2); }
.note { max-width: 560px; margin: 80px auto 0; font-size: 13px; color: var(--ink3); }

/* 页脚 */
.foot { margin-top: 136px; padding: 48px 0 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink3); }
.foot-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; padding-bottom: 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 20px; color: var(--ink2); font-size: 14px; }
.foot-links a:hover { color: var(--ink); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot .brand { color: var(--ink); }
.foot-in a:hover, .reask:hover { color: var(--ink2); }

/* 进场 */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
/* 卡片：进场之外再带上悬停的抬起（用 translate，不和进场的 transform 打架）；同一排依次出现 */
.tile, .plain, .js .tile.rv, .js .plain.rv {
  transition: opacity .6s ease, transform .6s var(--ease), translate .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.js .grid6 > .rv:nth-child(3n+2), .js .grid3 > .rv:nth-child(3n+2), .js .bento > .rv:nth-child(2n) { transition-delay: .07s, .07s, 0s, 0s, 0s; }
.js .grid6 > .rv:nth-child(3n), .js .grid3 > .rv:nth-child(3n) { transition-delay: .14s, .14s, 0s, 0s, 0s; }

/* 窄屏 */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .bento { grid-template-columns: 1fr; gap: 88px; }
  .bento .card:last-child { display: flex; }
  .bento .card:last-child h3 { margin-top: 36px; }
  .row { grid-template-columns: 1fr; gap: 44px; }
  .row + .row { margin-top: 136px; }
  .wrap { width: min(1080px, 100% - 48px); }
  .sec-head { margin-bottom: 64px; }
  .grid6 { gap: 16px; }
  .compare { margin-top: 88px; }
  .scenes { margin-top: 88px; }
  .dl { padding: 96px 28px 88px; }
  .steps-heading { margin-top: 64px; }
  .foot { margin-top: 104px; }
  .foot-main { flex-direction: column; gap: 32px; }
  /* 大卡在窄窗口改成上下排：名称、版本、整行按钮 */
  .dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) { display: flex; align-items: stretch; padding: 26px 24px; }
  .dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) h3 + p { margin-bottom: 22px; }
  .dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) .btn { width: 100%; min-width: 0; }
  .row.flip .row-text { order: 0; }
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr; gap: 16px; }
  .keys { grid-template-columns: 1fr; padding: 6px 32px; }
  .keys > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; max-width: 420px; gap: 32px; }
  .grid6.scenes { grid-template-columns: 1fr; }
  .flow3 { grid-template-columns: 1fr; gap: 36px; }
  .cmp { align-items: flex-start; gap: 14px; }
  .cmp > b { line-height: 33px; }
  .sec { padding-top: 176px; }
}
@media (max-width: 760px) {
  .download-grid, [data-os="windows"] .download-grid, [data-os="other"] .download-grid { grid-template-columns: 1fr; gap: 12px; }
  .dl-card:is([data-os="desktop"] [data-platform="mac"], [data-os="ios"] [data-platform="ios"], [data-os="android"] [data-platform="android"]) { grid-column: 1 / -1; padding: 26px 22px; }
  .dl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 16px 16px 16px 18px; border-radius: 20px; }
  .dl-card h3 { grid-column: 1; font-size: 16px; }
  .dl-card h3 + p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12.5px; }
  .dl-card .btn { grid-column: 2; grid-row: 1; width: auto; height: 38px; margin: 0; padding-inline: 16px; font-size: 14px; }
  .download-grid .dl-qr { flex-direction: row; justify-content: flex-start; padding: 16px 18px; text-align: left; border-radius: 20px; }
}
@media (max-width: 620px) {
  .invite-alert { padding: 14px 16px; font-size: 14px; }
  .itabs { display: flex; flex-wrap: wrap; width: 100%; max-width: 360px; margin-inline: auto; border-radius: 18px; }
  .itabs button { flex: 1 1 calc(50% - 4px); }
  .beta-group { flex-direction: column; max-width: none; padding: 24px 20px; text-align: center; gap: 18px; }
  .wrap { width: calc(100% - 40px); }
  .hero { padding-top: 48px; }
  .mode-seg { margin-bottom: 36px; }
  .sec { padding-top: 128px; }
  .sec-head { margin-bottom: 48px; }
  .sub { font-size: 16.5px; }
  .bento { gap: 64px; }
  .mock { border-radius: 24px; }
  .card .mock { height: 280px; padding: 36px 18px; }
  .card h3 { margin-top: 26px; font-size: 20px; }
  .row-text h3 { font-size: 24px; }
  .grid6 { gap: 14px; }
  .tile, .plain { padding: 24px 22px 26px; border-radius: 22px; }
  .keys { padding: 2px 22px; border-radius: 24px; }
  .keys > div { padding: 22px 0; gap: 16px; }
  .foot { margin-top: 88px; }
  .foot-in { flex-direction: column; gap: 12px; }
  br.wide { display: none; }
  .stage { margin-top: 28px; }
  .pstage { margin-top: 32px; }
  .hero-cta { margin-top: 30px; }
  .hero-cta .btn { width: 100%; max-width: 300px; height: 52px; }
  .hero-meta span { display: block; }
  .hero-meta span + span::before { content: none; }
  .plats { gap: 6px; margin-top: 48px; }
  .plats-label { margin-right: 2px; }
  .plats button { height: 32px; padding: 0 12px; font-size: 13.5px; }
  .editor { height: 214px; padding: 22px 18px; }
  .line { font-size: 19px; }
  .ime { gap: 8px; padding-right: 8px; }
  .ime .py { display: none; }
  .cand { padding: 5px 8px 6px; }
  .cand .zh { font-size: 16.5px; }
  .cand:nth-child(n+4) { display: none; }
  .tstrip { max-width: 100%; }
  .tbody span { font-size: 15.5px; }
  .keyhint { right: 16px; bottom: 14px; }
  .keyhint kbd { width: 34px; height: 34px; font-size: 16px; }
  .grid6 { grid-template-columns: 1fr; }
  .row > .mock { padding: 28px 18px; }
  .row > .mock-reply { padding: 0; }
  .r-chat, .r-panel { padding-left: 14px; padding-right: 14px; }
  .mock-reply .replies { min-height: 250px; }
  .r-gap { height: 88px; }
  .replies li { grid-template-columns: 16px 1fr; }
  .replies li > span { display: none; }
  .dl { padding: 80px 18px 72px; border-radius: 28px; }
  .compare { padding: 30px 20px; margin-top: 72px; }
  .scenes { margin-top: 72px; }
  .cmp li { padding: 5px 10px; font-size: 13px; }
  .cmp li + li { margin-left: 22px; }
  .cmp li + li::before { left: -17px; }
  .chat-head, .wbody, .winput { padding-left: 14px; padding-right: 14px; }
  .wbody { min-height: 452px; }
  .winput .ime { left: 14px; max-width: calc(100% - 28px); }
  .winput .cand:nth-child(n+3) { display: none; }
  .winput .r-chip { left: 20px; }
  .winput .box { min-height: 62px; }
  .wpanel .replies li { grid-template-columns: 16px 1fr auto; }
  .wpanel .replies li > span { display: block; }
  .po { min-width: 0; }
  .ask-opts { grid-template-columns: 1fr; }
  .ask-opt .mini { height: 92px; }
  .mode-seg button { padding: 6px 14px; font-size: 13.5px; }
  .keys dt { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .ime, .tstrip, .keyhint, .sbub.live .wave i { animation: none; }
  .wchat .bub, .wchat .pill, .wchat .tcard, .wchat .wpanel, .wchat .r-chip, .wpanel li, .shotsel, .ask-in { transition: none; animation: none; }
  .mock-reply .bub, .r-chip, .r-panel, .replies li, .replies li small { transition: none; }
  .js .rv, .js .tile.rv, .js .plain.rv { opacity: 1; transform: none; transition: none; }
  .tile:hover, .plain:hover, .dl-card:hover { translate: none; }
  .btn.primary:hover, .btn.ghost:hover, .ask-opt:hover { transform: none; }
}
