:root { --library-primary: #7356dc; --library-deep: #5740b8; --library-ink: #282b31; --library-muted: #7d8491; --library-line: #e8eaf0; --library-bg: #f6f7f9; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--library-bg); }
body { min-width: 320px; margin: 0; padding-bottom: calc(74px + env(safe-area-inset-bottom)); color: var(--library-ink); background: var(--library-bg); font-family: -apple-system, BlinkMacSystemFont, "SF UI Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.library-page { width: min(750px, 100%); min-height: 100vh; margin: 0 auto; }
.library-header { position: sticky; top: 0; z-index: 20; min-height: 64px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: max(8px, env(safe-area-inset-top)) 15px 8px; border-bottom: 1px solid rgba(225, 227, 233, .9); background: rgba(246,247,249,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.library-header > a:first-child { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--library-muted); }
.library-header > a:first-child svg { width: 20px; height: 20px; }
.library-header > div { text-align: center; }
.library-header span { display: block; color: var(--library-primary); font-size: 8px; font-weight: 850; letter-spacing: .15em; line-height: 1; }
.library-header h1 { margin: 5px 0 0; color: #17191e; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1; }
.library-profile { padding: 6px 0 6px 6px; color: var(--library-deep); font-size: 10px; font-weight: 800; }
.library-main { width: calc(100% - 30px); margin: 0 auto; padding: 16px 0 30px; }
.library-section { margin-top: 15px; padding: 15px 13px 12px; border: 1px solid #e7e5f3; border-radius: 11px; background: #fff; box-shadow: 0 6px 20px rgba(47,51,67,.06); }
.library-section:first-child { margin-top: 0; }
.library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.library-heading p { margin: 0; color: var(--library-primary); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.library-heading h2 { margin: 5px 0 0; color: #17191e; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.05; }
.library-heading > span { padding: 5px 8px; border-radius: 999px; color: var(--library-deep); background: #f0edff; font-size: 9px; font-weight: 800; }
.library-list { display: grid; gap: 0; margin-top: 11px; }
.library-story { min-width: 0; display: grid; grid-template-columns: 58px minmax(0,1fr) 27px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--library-line); cursor: pointer; }
.library-story:last-child { border-bottom: 0; }
.library-cover { width: 58px; aspect-ratio: 3 / 4; display: block; overflow: hidden; border-radius: 6px; background: #e9eaf0; }
.library-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.library-cover-art { display: flex; flex-direction: column; justify-content: flex-end; padding: 7px; color: #fff; background: linear-gradient(150deg, #5b4a9e, #a77bd5 58%, #e0a7b3); }
.library-cover-art strong { display: -webkit-box; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 10px; line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.library-copy { min-width: 0; }
.library-copy strong { display: -webkit-box; overflow: hidden; color: var(--library-ink); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.library-copy small { display: block; margin-top: 5px; overflow: hidden; color: var(--library-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.library-action { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--library-primary); background: #f0edff; }
.library-action svg { width: 14px; height: 14px; }
.library-empty { padding: 22px 10px 13px; color: var(--library-muted); font-size: 10px; line-height: 1.45; text-align: center; }
.library-empty strong { display: block; color: var(--library-ink); font-size: 12px; }
.library-empty a { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; color: var(--library-deep); font-weight: 800; }
.library-empty a svg { width: 14px; height: 14px; }
.library-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; width: min(750px,100%); height: 68px; display: grid; grid-template-columns: repeat(4,1fr); margin: 0 auto; padding: 7px 8px max(6px,env(safe-area-inset-bottom)); border-top: 1px solid #e5e7ec; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.library-bottom-nav a { display: flex; align-items: center; justify-content: center; color: #969ba5; font-size: 10px; font-weight: 650; }
.library-bottom-nav a.active { color: var(--library-primary); font-weight: 850; }
@media (min-width: 751px) { body { padding-bottom: 0; } .library-bottom-nav { display: none; } }
