:root {
  --ink: #191919;
  --muted: #787774;
  --line: #e9e9e7;
  --blue: #0875ce;
  color-scheme: light;
  --page: #fff;
  --header: rgba(255,255,255,.96);
  --neutral: #f6f5f3;
  --neutral-hover: #f0efed;
  --pale-blue: #eef5fa;
  --pale-blue-hover: #e6eff6;
  --pale-purple: #f5f0f8;
  --pale-purple-hover: #eee7f2;
  --pale-sand: #faf4e9;
  --pale-sand-hover: #f5eddf;
  --pale-green: #eef5ef;
  --pale-green-hover: #e5eee6;
  --pale-rose: #faf0f0;
  --pale-rose-hover: #f3e5e5;
  --card-border: #cccbc7;
  --highlight: #e0f0fb;
  --quiet: #92918a;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececea;
  --muted: #a5a5a0;
  --line: #30312f;
  --blue: #278ddd;
  --page: #181918;
  --header: rgba(24,25,24,.96);
  --neutral: #242523;
  --neutral-hover: #2c2e2b;
  --pale-blue: #202c34;
  --pale-blue-hover: #283640;
  --pale-purple: #2b2631;
  --pale-purple-hover: #352e3d;
  --pale-sand: #302b23;
  --pale-sand-hover: #3a342a;
  --pale-green: #232e27;
  --pale-green-hover: #2c3930;
  --pale-rose: #322629;
  --pale-rose-hover: #3d2e32;
  --card-border: #4b4d48;
  --highlight: #23445b;
  --quiet: #92948e;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: 98px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
::selection { background: #d3e8f7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #78b7e8; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.header { position: sticky; z-index: 20; top: 0; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1440px, calc(100% - 64px)); margin: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 750; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 38px; padding: 3px; letter-spacing: 0; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--ink); background: var(--page); font: 700 23px/1 Georgia, serif; transform: rotate(-4deg); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav > a:not(.button) { padding: 8px 0; }
.nav > a:not(.button):hover { color: var(--muted); }
.button { display: inline-flex; gap: 22px; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 550; border-radius: 6px; transition: background .15s; }
.button:hover { background: #0666b4; }
.hero { position: relative; text-align: center; padding: 81px 0 83px; }
.tag { display: inline-flex; align-items: center; margin: 0 0 24px; color: var(--muted); font-size: 14px; font-weight: 500; }
h1 { position: relative; isolation: isolate; margin: 0; font-size: clamp(44px, 6.6vw, 84px); line-height: 1.25; letter-spacing: -.075em; font-weight: 750; }
.headline-highlight { position: relative; display: inline-block; margin-left: .05em; }
.headline-highlight::before { content: ""; position: absolute; z-index: -1; inset: 10% -10% 1%; background: var(--highlight); border-radius: 52% 43% 46% 39%; transform: rotate(-3deg); }
.headline-highlight svg { position: absolute; bottom: -6px; width: 100%; left: 0; height: 12px; color: var(--ink); }
.intro { font-size: 17px; color: var(--muted); line-height: 1.8; margin: 27px auto 24px; max-width: 680px; letter-spacing: -.025em; }
.hero-cta { min-height: 44px; padding-inline: 22px; }
.hero-sketch { width: 133px; height: 112px; position: absolute; right: 10px; bottom: 24px; transform: rotate(4deg); }
.section { margin-bottom: 64px; }
.section-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
h2 { font-size: 28px; letter-spacing: -.05em; line-height: 1.4; font-weight: 700; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 16px; }
.product { grid-column: span 2; position: relative; padding: 25px 25px 28px; min-height: 208px; background: var(--neutral); border: 1px solid transparent; border-radius: 12px; display: flex; flex-direction: column; transition: border-color .18s, background .18s; }
.product:hover { border-color: var(--card-border); background: var(--neutral-hover); }
.product-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.product-icon { width: 31px; height: 31px; display: grid; place-items: center; }
.product-icon img { width: 29px; height: 29px; }
.arrow { font-size: 24px; font-weight: 400; line-height: 1; transition: transform .18s; }
.product:hover .arrow { transform: translate(2px,-2px); }
.product h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.04em; font-weight: 700; margin: 0 0 10px; }
.product p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 360px; }
.product-audio, .product-word { grid-column: span 4; min-height: 312px; padding: 28px 30px 22px; }
.product-audio .product-top, .product-word .product-top { margin-bottom: 18px; }
.product-audio h3, .product-word h3 { font-size: 24px; }
.product-audio p, .product-word p { font-size: 14px; }
.product-art { width: 100%; height: 112px; margin-top: 24px; align-self: center; }
.product-word { background: var(--pale-blue); }
.product-word:hover { background: var(--pale-blue-hover); border-color: #c2d4e1; }
.product-duck { background: var(--pale-purple); }
.product-duck:hover { background: var(--pale-purple-hover); border-color: #d7cbe0; }
.product-paper { background: var(--pale-sand); }
.product-paper:hover { background: var(--pale-sand-hover); border-color: #e1d4be; }
.product-game { background: var(--pale-green); }
.product-game:hover { background: var(--pale-green-hover); border-color: #cadacc; }
.product-ai { background: var(--pale-rose); }
.product-ai:hover { background: var(--pale-rose-hover); border-color: #e1caca; }
.mini-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mini-program { --card-bg: var(--neutral); --card-hover: var(--neutral-hover); position: relative; flex: 0 1 auto; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card-bg); border: 1px solid transparent; border-radius: 9px; padding: 14px 18px; text-align: center; min-height: 56px; transition: border-color .18s, background .18s; }
.mini-program:hover { border-color: var(--card-border); background: var(--card-hover); }
.mini-icon { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; }
.mini-icon img { width: 23px; height: 23px; }
.mini-program .mini-name { font-size: 14px; font-weight: 400; letter-spacing: -.025em; line-height: 1.6; }
.mini-qr, .qr-preview { display: block; position: absolute; bottom: calc(100% + 10px); left: 50%; width: 170px; padding: 10px; border: 1px solid var(--line); background: var(--page); border-radius: 9px; box-shadow: 0 5px 20px #19191912; visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%,5px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 25; }
.mini-qr img, .qr-preview img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.follow-section { margin-top: 50px; margin-bottom: 56px; }
.platform-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.platform { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--neutral); border: 1px solid transparent; padding: 13px 18px; min-height: 52px; border-radius: 9px; font-size: 12px; font-weight: 500; letter-spacing: -.015em; text-align: center; transition: background .18s, border-color .18s; }
.platform > img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.platform:hover { background: var(--neutral-hover); border-color: var(--card-border); }
.qr-preview { width: 154px; }
footer { border-top: 1px solid var(--line); padding: 25px 0 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; font-size: 10px; line-height: 1.8; color: var(--quiet); }
.filings { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.filings a:hover { text-decoration: underline; }
.qr-dialog { width: 350px; max-width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: var(--ink); background: var(--page); box-shadow: 0 20px 80px #0003; }
.qr-dialog::backdrop { background: #0006; }
.qr-dialog h2 { font-size: 20px; margin: 0 24px 23px 0; letter-spacing: -.03em; }
.qr-dialog > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.dialog-close { position: absolute; right: 12px; top: 12px; border: 0; background: var(--neutral); color: var(--muted); border-radius: 5px; width: 29px; height: 29px; font-size: 23px; line-height: 1; display: grid; place-items: center; }
.dialog-close:hover { background: var(--neutral-hover); }
@media (hover: hover) and (pointer: fine) {
  .mini-program:hover .mini-qr, .platform:hover .qr-preview { opacity: 1; visibility: visible; transform: translate(-50%,0); }
}
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .product-audio, .product-word { grid-column: span 2; }
  .hero { padding-top: 65px; padding-bottom: 75px; }
  .hero-sketch { width: 105px; height: 88px; right: 0; bottom: 15px; }
  .product { padding: 24px 22px; }
  .product-audio, .product-word { padding: 26px; }
  .product h3 { font-size: 18px; }
  .product-audio h3, .product-word h3 { font-size: 22px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { width: calc(100% - 36px); height: 66px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand-mark { width: 30px; height: 32px; font-size: 19px; box-shadow: 1.5px 1.5px 0 var(--ink); }
  .nav { gap: 20px; font-size: 12px; }
  .hero { padding: 59px 0 63px; }
  .tag { font-size: 12px; margin-bottom: 22px; }
  h1 { font-size: clamp(32px,7.6vw,51px); letter-spacing: -.07em; }
  .intro { font-size: 14px; margin-top: 25px; max-width: 480px; }
  .hero-cta { min-height: 40px; font-size: 13px; padding-inline: 19px; }
  .hero-sketch { width: 70px; height: 59px; right: 0; bottom: 8px; }
  .section { margin-bottom: 44px; }
  .section-head { margin-bottom: 19px; gap: 18px; }
  h2 { font-size: 25px; }
  .product-grid { gap: 12px; }
  .product { padding: 22px 18px; min-height: 206px; }
  .product-top { margin-bottom: 23px; }
  .product h3 { font-size: 17px; }
  .product p { font-size: 12px; }
  .product-audio, .product-word { min-height: 290px; padding: 23px; }
  .product-audio h3, .product-word h3 { font-size: 21px; }
  .product-audio p, .product-word p { font-size: 13px; }
  .product-art { height: 92px; margin-top: auto; }
  .mini-grid { gap: 9px; }
  .follow-section { margin-top: 49px; margin-bottom: 48px; }
  .footer-inner { font-size: 9px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 36px); }
  .nav { gap: 17px; }
  .mini-qr, .qr-preview { display: none; }

  .hero { padding-top: 54px; padding-bottom: 62px; }
  h1 { font-size: clamp(31px,8.1vw,40px); }
  .intro { font-size: 13px; line-height: 1.9; margin-top: 22px; max-width: 330px; }
  .desktop-break { display: none; }
  .hero-sketch { width: 58px; height: 50px; right: 3px; bottom: 7px; }
  .tag { font-size: 11px; margin-bottom: 21px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { grid-column: span 2; min-height: 0; padding: 21px; border-radius: 10px; }
  .product-audio, .product-word { grid-column: span 1; padding: 18px 15px 13px; min-height: 279px; }
  .product-audio h3, .product-word h3 { font-size: 16px; letter-spacing: -.05em; }
  .product-audio p, .product-word p { font-size: 11px; line-height: 1.8; }
  .product-audio .product-top, .product-word .product-top { margin-bottom: 17px; }
  .product-icon { width: 27px; height: 27px; }
  .product-icon img { width: 25px; height: 25px; }
  .arrow { font-size: 22px; }
  .product-art { height: 77px; margin-top: auto; padding-top: 10px; }
  .product:not(.product-audio):not(.product-word) { display: grid; grid-template-columns: 31px 1fr; gap: 14px; align-items: start; padding-right: 43px; }
  .product:not(.product-audio):not(.product-word) .product-top { margin: 0; }
  .product:not(.product-audio):not(.product-word) .arrow { position: absolute; right: 18px; top: 24px; font-size: 20px; }
  .product:not(.product-audio):not(.product-word) h3 { font-size: 16px; margin: 0 0 7px; }
  .product:not(.product-audio):not(.product-word) p { font-size: 11px; }
  h2 { font-size: 23px; }
  footer { padding: 22px 0 26px; }
  .footer-inner { gap: 10px; }
  .filings { gap: 5px 14px; }
}
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--neutral); color: var(--ink); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }
.hero-sketch, .product-art { --sketch-ink: var(--ink); --sketch-paper: var(--page); }
.hero-sketch g, .product-art g { stroke: var(--sketch-ink); }
.hero-sketch path[fill="#fff"], .product-art path[fill="#fff"] { fill: var(--sketch-paper); }
[data-theme="dark"] .hero-sketch { --sketch-ink: #b2b9ad; --sketch-paper: #242824; }
[data-theme="dark"] .hero-sketch g > path:last-child { stroke: #8b9b83; }
[data-theme="dark"] .audio-art { --sketch-ink: #b4bfac; --sketch-paper: #30372d; }
[data-theme="dark"] .word-art { --sketch-ink: #a9bdca; --sketch-paper: #2a3b46; }
[data-theme="dark"] .audio-art g > path:last-child { stroke: #8c9e80; }
[data-theme="dark"] .word-art g > path:last-child { stroke: #859fac; }
[data-theme="dark"] .product:hover { border-color: var(--card-border); }
[data-theme="dark"] ::selection { background: #315b7a; }
[data-theme="dark"] .product-icon img, [data-theme="dark"] .mini-icon img { filter: invert(.9); }
.qr-dialog > img { background: #fff; padding: 6px; border-radius: 6px; }
@media (max-width: 1000px) {
  .mini-program { padding-inline: 14px; gap: 10px; }
  .mini-program .mini-name { font-size: 13px; }
}
@media (max-width: 700px) {
  .mini-program { min-height: 52px; padding: 12px 13px; gap: 9px; }
  .platform { min-height: 54px; padding: 13px 12px; }
}
@media (max-width: 480px) {
  .mini-program { padding: 12px 10px; gap: 8px; }
  .mini-program .mini-name { font-size: 12px; }
  .mini-icon, .mini-icon img { width: 22px; height: 22px; }
  .platform { padding: 12px; min-height: 52px; font-size: 12px; }
  .platform > img { width: 19px; height: 19px; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 博客文章列表 */
.nav a[aria-current="page"] { color: var(--blue); }
.blog-main { max-width: 920px; padding-top: 88px; padding-bottom: 100px; min-height: calc(100vh - 156px); }
.blog-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 29px 0 31px; border-bottom: 1px solid var(--line); }
.blog-row time { padding-top: 3px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.blog-row h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; line-height: 1.5; }
.blog-row p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (max-width: 700px) {
  .blog-main { padding-top: 60px; padding-bottom: 70px; }
  .blog-row { grid-template-columns: 105px minmax(0, 1fr); gap: 14px; }
  .blog-row h2 { font-size: 18px; }
}
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .blog-row { display: block; padding: 24px 0; }
  .blog-row time { display: block; margin-bottom: 12px; font-size: 12px; }
  .blog-row h2 { font-size: 17px; }
  .blog-row p { font-size: 13px; }
}
.blog-row h2 a:hover { color: var(--blue); }
.article-main { max-width: 760px; min-height: calc(100vh - 156px); padding-top: 72px; padding-bottom: 100px; }
.article-header { margin-bottom: 44px; text-align: center; }
.article-header h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.35; letter-spacing: -.04em; text-wrap: balance; }
.article-header time { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; }
/* Markdown Editor 的预览排版，配色沿用官网的蓝色。 */
.article-body {
  --article-text: #3e4650;
  --article-accent: #12588e;
  --article-border: #dce7f0;
  color: var(--article-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .article-body {
  --article-text: #d0d5dc;
  --article-accent: #94c9f5;
  --article-border: #3a4a57;
}
.article-body :is(h1, h2, h3, h4, h5, h6) { color: var(--ink); font-weight: 700; letter-spacing: normal; }
.article-body h1 { margin: 16px 0 25px; font-size: 24px; line-height: 1.45; text-align: center; }
.article-body h2 {
  margin: 32px 0 18px;
  padding-inline-start: 12px;
  border-inline-start: 4px solid var(--blue);
  font-size: 19px;
  line-height: 1.5;
}
.article-body :is(h3, h4, h5, h6) { margin: 25px 0 14px; color: var(--article-accent); font-size: 16px; line-height: 1.6; }
.article-body p { margin: 0 0 18px; letter-spacing: .5px; }
.article-body :is(ul, ol) { margin: 14px 0 20px; padding-inline-start: 24px; }
.article-body li { margin: 5px 0; }
.article-body strong { color: var(--article-accent); font-weight: 700; }
.article-body :is(em, del) { color: var(--muted); }
.article-body a { color: var(--article-accent); text-decoration: underline; }
.article-body img { height: auto; margin: 20px auto; }
.article-body hr { margin: 28px 0; border: 0; border-top: 1px solid var(--article-border); }
.article-body blockquote { margin: 22px 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--article-border); color: var(--muted); }
.article-body blockquote > :last-child { margin-bottom: 0; }
.article-body pre {
  padding: 15px;
  overflow: auto;
  background: var(--pale-blue);
  font-family: monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.article-body :not(pre) > code {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--pale-blue);
  color: var(--article-accent);
  font-family: monospace;
  font-size: .9em;
}
.article-body table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.article-body :is(th, td) { border: 1px solid var(--article-border); padding: 8px; }
.article-body th { background: var(--pale-blue); text-align: start; }
@media (max-width: 700px) {
  .article-main { padding-top: 48px; padding-bottom: 70px; }
}
.home-blog-section { margin-top: 0; }
.home-blog-section .blog-row { border: 0; }
