/* OhKey 官网。和 App 同一套语言：冷白底 + 淡紫点阵、近黑描边的轻贴纸、荧光绿强调、Okki 的青紫粉渐变只用在形象和光晕上。 */
:root {
  --bg: #F5F5F9;
  --card: #FFFFFF;
  --ink: #16131F;
  --ink-2: #4A4857;
  --sub: #8C8A97;
  --line: #ECEAF2;
  --tint: #EEEAFF;
  --tint-text: #6557C9;
  --lime: #D7FF3F;
  --rose: #FF5C8A;
  --edge: rgba(22, 19, 31, .85);
  --brand: linear-gradient(120deg, #6FD3FF, #A78BFA 52%, #FF7AA2);
  --sticker: 0 0 0 1.5px var(--edge), 3px 3px 0 rgba(22, 19, 31, .78);
  --soft: 0 0 0 1px rgba(22, 19, 31, .06), 3px 4px 0 rgba(22, 19, 31, .06);
  --r: 20px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.dots { background-image: radial-gradient(rgba(101, 87, 201, .13) 1.2px, transparent 1.2px); background-size: 22px 22px; }

/* ── 顶栏 ── */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(245, 245, 249, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(22, 19, 31, .05); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 20px; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(22, 19, 31, .08); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 750; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s; white-space: nowrap; }
.btn:hover { transform: translate(-1px, -1px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgba(22, 19, 31, .25); }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: var(--sticker); }
.btn-lime:hover { box-shadow: 0 0 0 1.5px var(--edge), 4px 4px 0 rgba(22, 19, 31, .78); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: var(--soft); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ── 首屏 ── */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(167, 139, 250, .28), rgba(111, 211, 255, .16) 55%, transparent); filter: blur(6px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--card); box-shadow: var(--soft); font-size: 14px; font-weight: 650; color: var(--ink-2); }
.eyebrow i { width: 8px; height: 8px; border-radius: 99px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--edge); }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.06; letter-spacing: -.035em; margin: 22px 0 18px; font-weight: 900; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .38em; background: var(--lime); z-index: -1; border-radius: 4px; transform: rotate(-1.2deg); }
.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); max-width: 30em; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13px; color: var(--sub); margin-top: 14px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img.okki { width: min(360px, 80%); filter: drop-shadow(0 30px 40px rgba(101, 87, 201, .25)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.bubble-tag { position: absolute; padding: 10px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--sticker); font-weight: 700; font-size: 15px; white-space: nowrap; }
.bubble-tag small { display: block; font-weight: 500; font-size: 12px; color: var(--sub); }
.bt1 { left: 0; top: 18%; transform: rotate(-4deg); }
.bt2 { right: 0; top: 52%; transform: rotate(3deg); background: var(--lime); }
.bt3 { left: 6%; bottom: 6%; transform: rotate(2deg); }

/* ── 区块 ── */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head .kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--tint-text); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 900; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17px; }

/* 演示：聊天 + 键盘 */
.demo { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.phone { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 44px; background: #fff; padding: 12px; box-shadow: var(--sticker), 0 40px 80px -30px rgba(101, 87, 201, .45); }
.screen { border-radius: 34px; overflow: hidden; background: #EDEDF2; }
.chat-top { text-align: center; padding: 16px 0 10px; font-weight: 700; font-size: 15px; background: #F7F7FA; border-bottom: 1px solid #E4E3EA; }
.chat { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.them { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.me { background: #A6E36B; align-self: flex-end; border-bottom-right-radius: 5px; }
.kb { background: #D9D5E8; padding: 10px 8px 12px; }
.kb-bar { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.kb-bar img { width: 26px; height: 26px; border-radius: 99px; background: #fff; }
.kb-bar b { font-size: 13px; }
.kb-bar .pill { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: #fff; }
.cards { display: flex; flex-direction: column; gap: 6px; }
.rc { background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 14px; display: flex; gap: 8px; align-items: center; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.rc em { font-style: normal; font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 6px; background: var(--tint); color: var(--tint-text); flex: none; }
.rc.on { box-shadow: 0 0 0 1.5px var(--edge), 2px 2px 0 rgba(22, 19, 31, .7); background: #FBFFE8; }
.rc.on::after { content: "点一下就放进输入框"; margin-left: auto; font-size: 11px; color: var(--sub); white-space: nowrap; }
.demo-copy h3 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.02em; }
.demo-copy p { color: var(--ink-2); margin: 0 0 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--soft); }
.steps .n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; background: var(--lime); box-shadow: 0 0 0 1.5px var(--edge); }
.steps b { display: block; font-size: 16px; }
.steps span { color: var(--ink-2); font-size: 14.5px; }

/* 功能 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--card); border-radius: var(--r); padding: 26px; box-shadow: var(--soft); transition: transform .15s; }
.feat:hover { transform: translateY(-3px); }
.feat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--tint); color: var(--tint-text); }
.feat .ico svg { width: 24px; height: 24px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feat.big { grid-column: span 2; display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: center; overflow: hidden; }
.feat.big img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; mix-blend-mode: multiply; }

/* 隐私 */
.privacy { background: var(--ink); color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.privacy h2 { color: #fff; }
.privacy p { color: rgba(255, 255, 255, .7); }
.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.privacy li i { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; }
.privacy a { color: var(--lime); }

/* 会员 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: var(--soft); display: flex; flex-direction: column; }
.plan.hot { box-shadow: var(--sticker); position: relative; }
.plan.hot::before { content: "推荐"; position: absolute; top: -13px; left: 24px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--lime); box-shadow: 0 0 0 1.5px var(--edge); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 40px; font-weight: 900; letter-spacing: -.03em; margin: 10px 0 2px; }
.price small { font-size: 15px; font-weight: 600; color: var(--sub); }
.plan .alt { color: var(--sub); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li::before { content: "✓"; font-weight: 900; margin-right: 8px; color: var(--tint-text); }
.fine { text-align: center; color: var(--sub); font-size: 13px; max-width: 760px; margin: 28px auto 0; }

/* 问答 */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border-radius: 16px; box-shadow: var(--soft); padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--sub); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ink-2); }

/* 结尾 */
.end { text-align: center; padding: 72px 0 96px; }
.end img { width: 200px; margin: 0 auto 8px; }
.end .cta { justify-content: center; }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--sub); background: #EFEFF4; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 2fr; gap: 32px; }
footer .links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; }
footer a { text-decoration: none; color: var(--ink-2); }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .legal-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 22px; border-top: 1px solid var(--line); }

/* 文档页（法律文本、帮助） */
.doc { padding: 48px 0 80px; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc aside { position: sticky; top: 88px; display: grid; gap: 4px; }
.doc aside a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; font-weight: 550; }
.doc aside a:hover { background: rgba(22, 19, 31, .04); }
.doc aside a.on { background: var(--tint); color: var(--tint-text); font-weight: 750; }
.doc article { background: var(--card); border-radius: 24px; padding: 44px 48px; box-shadow: var(--soft); min-width: 0; }
.doc h1 { font-size: 36px; margin: 0 0 8px; }
.doc .meta { color: var(--sub); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 19px; letter-spacing: -.01em; margin: 32px 0 10px; }
.doc p { margin: 0 0 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.doc pre { white-space: pre-wrap; font-size: 12px; line-height: 1.5; background: #F7F7FA; border-radius: 12px; padding: 16px; max-height: 520px; overflow: auto; color: var(--ink-2); }
.doc ol { padding-left: 20px; color: var(--ink-2); }
.doc ol li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding-top: 36px; }
  .hero .wrap, .demo, .privacy, footer .wrap, .doc .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img.okki { width: 220px; }
  .bubble-tag { font-size: 13px; padding: 8px 11px; }
  .features, .plans { grid-template-columns: 1fr; }
  .feat.big { grid-column: auto; grid-template-columns: 1fr; }
  .privacy { padding: 32px 24px; border-radius: 24px; }
  section { padding: 60px 0; }
  .doc aside { position: static; display: flex; overflow-x: auto; }
  .doc aside a { white-space: nowrap; }
  .doc article { padding: 28px 22px; }
  footer .links { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
