/* Little Ink 介绍页（/little-ink/、/en/little-ink/）· 2026-11-10 第三版：照魔法笔介绍页的版式（css/pen-home.css 的 .lp-*，这里只补 Little Ink 自己的部分）。
   和魔法笔页的不同：首屏左右边缘和顶栏对齐（不比正文栏宽）；左边是 iPad + iPhone 两台设备（不是浏览器框和触控笔）；右边只有一个 App Store 按钮。
   帮助页、隐私页（.doc）不用这个文件。 */

/* 首屏：和顶栏同宽（pen-home.css 的 .lp-hero 比正文栏宽 180，这里收回来），左图右字 */
.li-page .lp-hero { width: auto; left: auto; transform: none; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); padding-top: 8px; }
.li-page .lp-intro h1 { font-size: clamp(32px, 3.2vw, 40px); }

/* App 名：图标 + 名字 + 一行小字（代替魔法笔页的小标签） */
.li-app { display: flex; align-items: center; gap: 14px; }
.li-app-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 0 0 .5px rgb(var(--ink-rgb) / .08), 0 1px 2px rgb(40 30 20 / .12), 0 8px 18px -8px rgb(40 30 20 / .35); }
.li-app span { display: flex; flex-direction: column; gap: 2px; }
.li-app b { font-size: var(--t-m); font-weight: 600; color: var(--ink); line-height: 1.3; }
.li-app small { font-size: var(--t-s); color: var(--ink-3); line-height: 1.4; }

/* App Store 按钮：上架前是占位（上架后换 Apple 官方徽标，不能自己画） */
.li-store { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 12px 22px; border-radius: 12px; background: #1C1917; color: #fff; font-weight: 600; font-size: 16px; line-height: 1.5; cursor: default; }
.li-store small { font-weight: 400; font-size: 12px; opacity: .75; }
:root[data-theme="night"] .li-store { background: #F2EEE6; color: #1C1917; }
.li-note { margin: 0; max-width: 30em; font-size: var(--t-s); line-height: var(--desc-lh); color: var(--ink-3); }

/* 设备：iPad 斜放占左栏大部分，iPhone 横屏叠在它右下角、也微微斜。两台都是窄黑边，iPhone 左边有灵动岛。
   iPhone 伸出 iPad 下沿约一半，右边缘和栏的右边缘对齐，视觉重心落在左上的 iPad 上，iPhone 压住右下角 */
.li-devices { grid-area: shot; position: relative; margin: 0; padding: 2% 0 15% 2%; min-width: 0; }
.li-ipad, .li-iphone { background: #0E0E10; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), 0 1px 2px rgb(40 30 20 / .14), 0 24px 48px -22px rgb(40 30 20 / .45); }
.li-ipad { width: 90%; padding: clamp(5px, .6vw, 8px); border-radius: clamp(16px, 2vw, 26px); transform: rotate(-4deg); transform-origin: 50% 50%; }
.li-ipad img { display: block; width: 100%; height: auto; border-radius: clamp(11px, 1.45vw, 19px); }
.li-iphone { position: absolute; right: 0; bottom: 3%; width: 52%; padding: clamp(4px, .45vw, 6px); border-radius: clamp(20px, 2.6vw, 34px); transform: rotate(3deg);   /* 11-11 Wanfang：iPad 往左歪，iPhone 就往右歪一点，视觉平衡 */ transform-origin: 50% 50%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06), 0 1px 2px rgb(40 30 20 / .18), 0 18px 36px -12px rgb(40 30 20 / .5); }
.li-iphone img { display: block; width: 100%; height: auto; border-radius: clamp(16px, 2.2vw, 28px); }
/* iPad 边框颜色（11-10 Wanfang：iPad 试浅色，iPhone 保持黑色）：.li-devices 上加 li-ipad-white / li-ipad-silver */
.li-ipad-white .li-ipad { background: #F7F6F3; box-shadow: inset 0 0 0 1px rgb(40 30 20 / .10), 0 0 0 .5px rgb(40 30 20 / .10), 0 1px 2px rgb(40 30 20 / .12), 0 24px 48px -22px rgb(40 30 20 / .40); }
.li-ipad-silver .li-ipad { background: #DFE0E3; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 0 0 .5px rgb(40 30 20 / .12), 0 1px 2px rgb(40 30 20 / .12), 0 24px 48px -22px rgb(40 30 20 / .40); }
:root[data-theme="night"] .li-ipad-white .li-ipad, :root[data-theme="night"] .li-ipad-silver .li-ipad { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2), 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -22px rgb(0 0 0 / .7); }
.li-iphone::after { content: ""; position: absolute; left: 3.6%; top: 50%; width: 2.6%; height: 27%; transform: translateY(-50%); border-radius: 999px; background: #050506; }   /* 灵动岛（横屏在左边） */
:root[data-theme="night"] .li-ipad, :root[data-theme="night"] .li-iphone { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09), 0 1px 2px rgb(0 0 0 / .4), 0 24px 48px -22px rgb(0 0 0 / .7); }

/* 墨水那一排：多一格以后正好 7 格（pen-home.css 已经是 repeat(7, …)） */

/* 平板竖屏 / 手机：字在上、图在下（和魔法笔页一样） */
@media (max-width: 899.98px) {
  .li-page .lp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "shot"; gap: 40px; }
  .li-devices { padding: 2% 2% 14% 2%; }
}
@media (max-width: 699.98px) {
  .li-page .lp-intro h1 { font-size: 30px; }
  .li-app-icon { width: 48px; height: 48px; border-radius: 11px; }
  .li-devices { padding: 1% 1% 16% 2%; }
  .li-ipad { width: 92%; }
  .li-iphone { width: 56%; }
}

/* 触控笔（11-11 Wanfang：iPad 上放一支笔，说明可以用 Apple Pencil）：和魔法笔页同一支通用白色触控笔（不画 Apple Pencil 本身的造型），
   笔尖落在小写 a 那一竖写完的地方（横 87.6%、竖 73.2%，按截图算）；这一层在 iPad 框里、跟着框一起歪；笔伸出框外 */
.li-ipad { position: relative; }
.li-pencil { position: absolute; inset: clamp(5px, .6vw, 8px); pointer-events: none; }
.li-pencil svg { position: absolute; width: 46%; left: 87.6%; top: 73.2%; transform: translate(-9.09%, -93.1%); overflow: visible; }   /* viewBox 440×580，笔尖在 (40, 540) */
.li-pencil .sh-far { fill: rgb(40 30 20 / .16); }
.li-pencil .sh-near { fill: rgb(40 30 20 / .12); }
.li-pencil .sh-tip { fill: rgb(40 30 20 / .38); }
.li-pencil .sh-dot { fill: rgb(20 15 10 / .55); }
:root[data-theme="night"] .li-pencil .sh-far { fill: rgb(0 0 0 / .4); }
:root[data-theme="night"] .li-pencil .sh-near { fill: rgb(0 0 0 / .3); }
:root[data-theme="night"] .li-pencil .sh-tip { fill: rgb(0 0 0 / .55); }
:root[data-theme="night"] .li-pencil .sh-dot { fill: rgb(0 0 0 / .7); }
@media (max-width: 699.98px) { .li-pencil svg { width: 34%; } }   /* 手机上笔短一点，不伸出屏幕右边 */

/* 11-11 Wanfang：首屏截图做成会闪的动图——App 里真实的画面，模拟轻轻转动设备，亮片、贝壳跟着反光（4 秒一圈、首尾接上）。
   视频静音循环，poster 是原来的截图；系统设了「减少动态效果」就不播（js/pen-home.js 里 data-shimmer 那段） */
.li-ipad video, .li-iphone video { display: block; width: 100%; height: auto; }
.li-ipad video { border-radius: clamp(11px, 1.45vw, 19px); }
.li-iphone video { border-radius: clamp(16px, 2.2vw, 28px); }

/* 11-11 Wanfang：App 名是这一页的品牌，要更大更粗；名字和小字整组跟图标「上对齐」（原来是垂直居中）。
   名字的字顶和图标上沿对齐：行高收紧到 1.15，再往上挪 2px 抵掉字形上方的留白 */
.li-app { align-items: flex-start; gap: 16px; }
.li-app-icon { width: 64px; height: 64px; border-radius: 15px; }
.li-app span { gap: 6px; }
.li-app b { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin-top: -2px; }
@media (max-width: 699.98px) {
  .li-app-icon { width: 56px; height: 56px; border-radius: 13px; }
  .li-app b { font-size: 23px; }
}
/* 11-11 14:53 Wanfang：两行字整组和图标垂直居中（上对齐显得不平衡），名字保持大而粗 */
.li-app { align-items: center; }
.li-app b { margin-top: 0; }

/* 11-11：按钮是真的链接了（App Store 页面）。Apple 官方徽标文件到手前，先用这个站内样式的文字按钮 */
a.li-store { cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.li-store:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgb(28 25 23 / .55); }
a.li-store:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { a.li-store { transition: none; } a.li-store:hover { transform: none; } }

/* 11-11：墨水那排标题下的一句（前三种免费，其余在 App 里解锁） */
.li-page .lp-ink-note { margin: -8px auto 20px; max-width: 32em; text-align: center; font-size: var(--t-s); line-height: var(--desc-lh); color: var(--ink-3); }

/* 11-11 15:00 Wanfang：图标和名字之间的距离减半；首屏的字占满右栏（一句话介绍、小字不再自己收窄）；
   大标题在电脑上一行放得下就一行（原来 40px 放不下，按全站规则平衡成两行，右边空一块） */
.li-app { gap: 8px; }
.li-page .lp-lead, .li-page .li-note { max-width: none; }
@media (min-width: 900px) { .li-page .lp-intro h1 { font-size: clamp(28px, 2.35vw, 34px); } }   /* 34px：一行 12 个字，右栏 450 宽放得下，字体略宽的系统也放得下 */

/* 11-11 15:20：iPad 截图改成小写 a 写到一半（竖还没写），触控笔的笔尖落在那一竖起笔的黄色小光点上（横 87.4%、竖 43%，按截图算），笔短一点 */
.li-pencil svg { width: 40%; left: 87.4%; top: 43%; }
@media (max-width: 699.98px) { .li-pencil svg { width: 30%; } }

/* 11-11 15:22 Wanfang：「Little Ink」和下面那行小字之间再近一点（大约减半），整组仍和图标中线对齐 */
.li-app span { gap: 1px; }
.li-app small { line-height: 1.3; }

/* 11-11 16:29：三个语言版的介绍页之间切换时不整页闪：浏览器自带的跨页过渡（Chrome / Edge 126+、Safari 18.2+；别的浏览器照旧直接跳）。
   顶栏单独成一层、原地不动，下面的内容 0.22 秒淡入淡出。系统设了「减少动态效果」就不做 */
@view-transition { navigation: auto; }
.li-page .site-head { view-transition-name: li-head; }
::view-transition-group(li-head) { animation: none; }
::view-transition-old(li-head) { display: none; }
::view-transition-new(li-head) { animation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 11-11 16:30 Wanfang：「手指就能写；iPad 上也可以用 Apple Pencil。」和上面那段介绍同样的字号、颜色、行距，紧接着排，像同一段 */
.li-page .lp-hint { margin: -16px 0 0; font-size: var(--t-m); line-height: 1.8; color: var(--ink-2); }

/* 11-11 16:31 Wanfang：「免费下载，没有广告……」从按钮下面挪到「手指就能写」后面，同样的字号，和上面连成一段；按钮放在这一段之后，层级只剩：名字、标题、一段话、按钮 */
.li-page .li-note { margin: -16px 0 0; font-size: var(--t-m); line-height: 1.8; color: var(--ink-2); }

/* 11-12 10:06 Wanfang：触控笔的笔尖落在小写 a 那一笔停下的地方（亮片消失在笔尖下，横 78.8%、竖 72.3%，按截图算），不是下一笔的小光点 */
.li-pencil svg { left: 78.8%; top: 72.3%; }

/* 11-12 10:24 Wanfang：图标和「Little Ink」之间加倍（8 → 16px），和名字到大标题的间距一样 */
.li-app { gap: 16px; }
