/* 2-6 收藏室。class 一律 ks- 开头；一个打开的首饰匣：绒面托盘里一格一格，每格放一样收藏 */
.ks { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: calc(10px + var(--safe-b)); }
.ks .lace-edge { top: 0; }
.ks > .cl-top { flex: none; }
.cl-btn.ghost { visibility: hidden; }
/* 珍珠串 */
.ks-pearls { flex: none; display: block; width: calc(100% - 40px); height: 34px; margin: -6px 20px 0; overflow: visible; transform-origin: 50% 0; animation: ks-sway 6s ease-in-out infinite; }
.ks-pearls .th { fill: none; stroke: #C9BBA8; stroke-width: .8; }
.ks-pearls circle { fill: #FBF8F3; stroke: #D8CDBE; stroke-width: .7; filter: drop-shadow(0 1px 1px rgba(81, 75, 74, .2)); }
@keyframes ks-sway { 50% { transform: rotate(.6deg) translateY(1px); } }
.ks-flower { position: absolute; z-index: 4; right: 4px; top: calc(var(--status-h) + 2px); width: 44px; transform: rotate(24deg); pointer-events: none; }

.ks-kinds { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 24px 10px; }
.ks-kinds::-webkit-scrollbar { display: none; }
.ks-kinds button { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--lace); background: var(--card); font-size: 12px; color: var(--ink-2); }
.ks-kinds button[aria-pressed="true"] { background: var(--mauve-btn); border-color: var(--mauve-btn); color: var(--paper); }

/* 首饰匣：绒面托盘 + 一圈细金边 */
.ks-box { flex: 1; min-height: 0; margin: 0 18px; padding: 10px; border-radius: 14px; display: flex;
  background: radial-gradient(ellipse at 50% 30%, #EFE6EE, #E3D7E2 80%); box-shadow: inset 0 2px 8px rgba(90, 70, 95, .18), 0 0 0 1px #D9CBB8, 0 0 0 4px var(--paper), 0 0 0 5px var(--lace), 0 10px 24px rgba(81, 75, 74, .12); }
.ks-pages { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ks-pages::-webkit-scrollbar { display: none; }
.ks-page { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.ks-empty { flex: 0 0 100%; align-self: center; text-align: center; font-size: 12.5px; line-height: 2; color: var(--ink-2); }
.ks-dots { flex: none; }

/* 格子：凹下去的绒面小格，大小跟着东西走（照片、本子页竖长，信封、影票横长） */
.ks-page { grid-template-rows: repeat(4, minmax(0, 1fr)) !important; }
.ks-cell { position: relative; min-width: 0; min-height: 0; padding: 8px; border: 0; border-radius: 10px; background: rgba(214, 199, 213, .5);
  box-shadow: inset 0 2px 6px rgba(90, 70, 95, .28), inset 0 -1px 0 rgba(255, 255, 255, .55); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: left; overflow: hidden; }
.ks-cell > span { filter: drop-shadow(0 3px 4px rgba(70, 55, 70, .22)); transition: transform .25s; }
.ks-cell:active > span { transform: translateY(-3px); }
.ks-cell em, .ks-cell i { font-style: normal; }

/* 聊天：一张撕下来的小便签 + 铜回形针 */
.o-note { position: relative; width: 100%; height: 100%; box-sizing: border-box; padding: 14px 10px 12px; display: flex; flex-direction: column; background: #FBF5E9;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 6px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 6px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 10px 6px repeat-x; }
.o-note .clip { position: absolute; left: 10px; top: -3px; width: 9px; height: 24px; border: 1.6px solid #B59A72; border-radius: 6px; box-sizing: border-box; }
.o-note .clip::after { content: ''; position: absolute; left: 1.5px; top: 4px; width: 3px; height: 12px; border: 1.4px solid #B59A72; border-radius: 3px; border-top: 0; }
.o-note p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.o-note em { margin-top: auto; font-size: 10px; color: var(--mauve-deep); text-align: right; }

/* 语音：一盒磁带，标签上写着转写 */
.o-tape { position: relative; width: 100%; aspect-ratio: 1.55; max-height: 100%; box-sizing: border-box; padding: 7px 8px; border-radius: 6px; background: linear-gradient(160deg, #8E8090, #706477); display: flex; flex-direction: column; gap: 5px; }
.o-tape .lab { flex: none; padding: 4px 6px; border-radius: 2px; background: #F7F0E4; display: flex; flex-direction: column; border-top: 3px solid #C5B9C8; }
.o-tape .lab b { font-size: 10px; font-weight: 500; line-height: 1.4; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-tape .lab em { font-size: 8.5px; color: var(--ink-2); font-family: var(--font-serif); }
.o-tape .win { flex: 1; min-height: 0; margin: 0 14%; border-radius: 10px; background: rgba(40, 32, 42, .55); display: flex; align-items: center; justify-content: space-between; padding: 0 8%; }
.o-tape .reel { width: 18px; height: 18px; border-radius: 50%; background: repeating-conic-gradient(#EDE4EC 0 20deg, #CFC3D0 20deg 60deg); box-shadow: 0 0 0 2px #CFC3D0; animation: fn-spin 5s linear infinite; }
.o-tape .band { flex: 1; height: 8px; margin: 0 4px; border-radius: 4px; background: #5A4E5C; }
.o-tape .screws i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #CFC3D0; }
.o-tape .screws i:nth-child(1) { left: 3px; top: 3px; } .o-tape .screws i:nth-child(2) { right: 3px; top: 3px; } .o-tape .screws i:nth-child(3) { left: 3px; bottom: 3px; } .o-tape .screws i:nth-child(4) { right: 3px; bottom: 3px; }

/* 照片：花边老照片 + 四个黑色相角 */
.o-photo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 6px; }
.o-photo .pic { position: relative; flex: 1; min-height: 0; padding: 7px; background: #FFFDF8;
  -webkit-mask: radial-gradient(circle 3.2px, #0000 97%, #000) -3px -3px / 8px 8px round, linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat;
  mask: radial-gradient(circle 3.2px, #0000 97%, #000) -3px -3px / 8px 8px round, linear-gradient(#000 0 0) center / calc(100% - 8px) calc(100% - 8px) no-repeat; }
.o-photo .pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) sepia(.08); }
.o-photo .c { position: absolute; width: 10px; height: 10px; background: #5A5260; }
.o-photo .c.k1 { left: 7px; top: 7px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.o-photo .c.k2 { right: 7px; top: 7px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.o-photo .c.k3 { left: 7px; bottom: 7px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.o-photo .c.k4 { right: 7px; bottom: 7px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.o-photo > em { flex: none; font-size: 10.5px; line-height: 1.5; color: var(--ink); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 4px; }

/* 信：信封正面，邮票、邮戳、地址、火漆 */
.o-env { position: relative; width: 100%; height: 100%; box-sizing: border-box; border-radius: 3px; background: var(--pa); border: 1px solid var(--pl);
  background-image: linear-gradient(135deg, transparent 49.6%, var(--pl) 50%, transparent 50.4%), linear-gradient(225deg, transparent 49.6%, var(--pl) 50%, transparent 50.4%); background-size: 50% 100%; background-position: left bottom, right bottom; background-repeat: no-repeat; }
.o-env .stamp { position: absolute; right: 10px; top: 9px; width: 30px; height: 37px; padding: 2.5px; box-sizing: border-box; background: radial-gradient(circle, transparent 1.3px, #FFFDF9 1.6px) -2.5px -2.5px / 5px 5px; }
.o-env .stamp img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) sepia(.1); display: block; }
.o-env .pm { position: absolute; right: 30px; top: 30px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(112, 100, 119, .45); font-family: var(--font-serif); font-size: 7.5px; color: rgba(112, 100, 119, .7); display: flex; align-items: center; justify-content: center; transform: rotate(-12deg); }
.o-env .addr { position: absolute; left: 14px; top: 12px; right: 78px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.o-env .addr i { font-family: var(--font-script); font-size: 16px; color: var(--mauve-deep); line-height: 1; }
.o-env .addr b { font-size: 13px; font-weight: 600; letter-spacing: 1px; color: var(--ink); }
.o-env .addr small { font-size: 10.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-env .wax { position: absolute; right: 14px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .35), transparent 50%), var(--sw); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .25); }

/* 日记：撕下来的本子页，顶上一排线圈孔，左边一道竖线 */
.o-page { position: relative; width: 100%; height: 100%; box-sizing: border-box; padding: 20px 10px 10px 22px; display: flex; flex-direction: column; gap: 4px; background-color: #FFFEFB;
  background-image: linear-gradient(90deg, transparent 15px, rgba(169, 154, 170, .55) 15px 16px, transparent 16px), repeating-linear-gradient(transparent 0 19px, var(--line-soft) 19px 20px); background-position: 0 0, 0 22px; }
.o-page .holes { position: absolute; left: 8px; right: 8px; top: 6px; display: flex; justify-content: space-between; }
.o-page .holes i { width: 6px; height: 6px; border-radius: 50%; background: rgba(214, 199, 213, .9); box-shadow: inset 0 1px 1px rgba(70, 55, 70, .35); }
.o-page b { font-size: 12.5px; font-weight: 600; line-height: 20px; }
.o-page p { margin: 0; font-size: 11.5px; line-height: 20px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.o-page em { margin-top: auto; font-size: 10px; color: var(--mauve-deep); }

/* 时刻：一页撕下来的台历 */
.o-cal { width: 82%; height: 92%; box-sizing: border-box; border-radius: 4px; overflow: hidden; background: #FFFDF8; display: flex; flex-direction: column; align-items: center; text-align: center; }
.o-cal .top { width: 100%; padding: 4px 0; background: var(--mauve-btn); color: var(--paper); font-family: var(--font-serif); font-size: 10px; letter-spacing: 2px; position: relative; }
.o-cal .top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: radial-gradient(circle 1.5px, #FFFDF8 98%, transparent) 0 0 / 7px 3px; }
.o-cal b { font-family: var(--font-serif); font-weight: 500; font-size: 38px; line-height: 1.05; color: var(--teal); margin-top: 4px; }
.o-cal i { font-family: var(--font-serif); font-size: 9.5px; letter-spacing: 2px; color: var(--ink-2); }
.o-cal em { margin-top: auto; padding: 0 6px 7px; font-size: 10.5px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 歌：唱片封套，黑胶从右边滑出一半 */
.o-rec { position: relative; height: 92%; aspect-ratio: 1; max-width: 80%; }
.o-rec .disc { position: absolute; top: 4%; right: -26%; width: 92%; height: 92%; border-radius: 50%; background: repeating-radial-gradient(circle, #3E3A40 0 1px, #4A464C 1px 2px); display: flex; align-items: center; justify-content: center; animation: fn-spin 9s linear infinite; }
.o-rec .disc img { width: 36%; height: 36%; border-radius: 50%; object-fit: cover; }
.o-rec .sleeve { position: absolute; inset: 0; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px; box-sizing: border-box; }
.o-rec .sleeve img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.92); }
.o-rec .sleeve::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(46, 40, 48, .7)); }
.o-rec .sleeve b, .o-rec .sleeve i { position: relative; z-index: 1; color: #FBF8F4; }
.o-rec .sleeve b { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.o-rec .sleeve i { font-family: var(--font-serif); font-style: italic; font-size: 10px; opacity: .85; }

/* 影票 */
.o-tk { width: 100%; height: 78%; display: flex; border-radius: 6px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 7px at calc(100% - 62px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at calc(100% - 62px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 7px at calc(100% - 62px) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 7px at calc(100% - 62px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.o-tk .l { flex: 1; min-width: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: linear-gradient(120deg, #8C7591, #A08AA3); color: var(--paper); }
.o-tk .l em { font-family: var(--font-serif); font-size: 9px; letter-spacing: 3px; opacity: .85; }
.o-tk .l b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-tk .l .mv-stars i { font-size: 11px; color: rgba(255, 255, 255, .35); }
.o-tk .l .mv-stars i.on { color: #E9D9B4; }
.o-tk .r { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #FBF7F0; border-left: 1.5px dashed var(--mauve-pale); color: var(--mauve-deep); }
.o-tk .r i { font-family: var(--font-serif); font-size: 9px; }
.o-tk .r b { font-family: var(--font-serif); font-size: 18px; font-weight: 500; letter-spacing: 1px; writing-mode: vertical-rl; }

/* 看一格 */
.ks-sheet { display: flex; flex-direction: column; gap: 8px; }
.ks-sh { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.ks-sheet h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 1px; }
.ks-sheet h3 i { font-style: italic; font-family: var(--font-serif); font-weight: 400; font-size: 14px; color: var(--ink-2); }
.ks-big { width: 100%; max-height: 300px; object-fit: cover; border-radius: 6px; border: 4px solid #fff; box-shadow: 0 3px 10px rgba(81, 75, 74, .15); box-sizing: border-box; }
.ks-bigvy { width: 120px; height: 120px; margin: 4px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: repeating-radial-gradient(circle, #3E3A40 0 1.5px, #4A464C 1.5px 3px); box-shadow: 0 6px 14px rgba(50, 40, 50, .3); animation: fn-spin 10s linear infinite; }
.ks-bigvy img { width: 42%; height: 42%; border-radius: 50%; object-fit: cover; }
.ks-txt { margin: 0; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.ks-saved { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--mauve-deep); }
.ks-act { display: flex; gap: 10px; margin-top: 6px; }
.ks-act .un { height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-2); }
.ks-act .go { flex: 1; height: 40px; border-radius: 20px; background: var(--mauve-btn); color: var(--paper); font-size: 13px; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 6px; box-shadow: var(--shadow-accent); }
@media (prefers-reduced-motion: reduce) { .ks-pearls, .k-song .vy, .ks-bigvy { animation: none; } }
