:root { --catalog-primary: #7356dc; --catalog-primary-deep: #5740b8; --catalog-ink: #282b31; --catalog-muted: #7d8491; --catalog-line: #e8eaf0; --catalog-bg: #f6f7f9; --catalog-surface: #fff; }
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--catalog-bg); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; padding-bottom: calc(74px + env(safe-area-inset-bottom)); color: var(--catalog-ink); background: var(--catalog-bg); font-family: -apple-system, BlinkMacSystemFont, "SF UI Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--catalog-primary); outline-offset: 2px; }
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; }
[hidden] { display: none !important; }
.catalog-page { width: min(750px, 100%); min-height: 100vh; margin: 0 auto; }
.catalog-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); }
.catalog-back { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--catalog-muted); background: transparent; }
.catalog-back:hover { color: var(--catalog-ink); background: #fff; }
.catalog-back svg { width: 20px; height: 20px; }
.catalog-header > div { min-width: 0; text-align: center; }
.catalog-header span { display: block; color: var(--catalog-primary); font-size: 8px; font-weight: 850; letter-spacing: .15em; line-height: 1; }
.catalog-header h1 { margin: 5px 0 0; overflow: hidden; color: #17191e; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.catalog-profile { padding: 6px 0 6px 6px; color: var(--catalog-primary-deep); font-size: 10px; font-weight: 800; }
.catalog-main { width: calc(100% - 30px); margin: 0 auto; padding: 16px 0 calc(104px + env(safe-area-inset-bottom)); }
.catalog-intro { margin: 0; color: var(--catalog-muted); font-size: 11px; line-height: 1.5; }
.catalog-tools { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.catalog-search { min-width: 0; flex: 1; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 10px; border: 1px solid #e1e4eb; border-radius: 9px; background: #fff; }
.catalog-search svg { width: 16px; height: 16px; color: #9ba1ac; flex: 0 0 auto; }
.catalog-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--catalog-ink); background: transparent; font-size: 12px; }
.catalog-search input::placeholder { color: #a8adb6; }
.catalog-count { flex: 0 0 auto; color: #969ca7; font-size: 10px; font-weight: 700; }
.catalog-list { display: grid; gap: 0; margin-top: 14px; border-radius: 10px; background: var(--catalog-surface); box-shadow: 0 6px 20px rgba(47, 51, 67, .06); overflow: hidden; }
.catalog-card { position: relative; min-width: 0; display: grid; grid-template-columns: 67px minmax(0, 1fr) 28px; gap: 11px; align-items: center; min-height: 98px; padding: 11px 12px; border-bottom: 1px solid var(--catalog-line); cursor: pointer; }
.catalog-card:last-child { border-bottom: 0; }
.catalog-card:hover { background: #fbfaff; }
.catalog-cover { width: 67px; aspect-ratio: 3 / 4; display: block; overflow: hidden; border-radius: 6px; background: #e8e9ee; box-shadow: 0 4px 9px rgba(47, 51, 67, .1); }
.catalog-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.catalog-cover-art { display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; color: #fff; background: linear-gradient(150deg, #5b4a9e, #a77bd5 58%, #e0a7b3); }
.catalog-cover-art strong { display: -webkit-box; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 12px; line-height: 1.05; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-cover-art small { margin-bottom: 4px; color: rgba(255,255,255,.76); font-size: 7px; text-transform: uppercase; }
.catalog-copy { min-width: 0; }
.catalog-copy h2 { display: -webkit-box; margin: 0; overflow: hidden; color: var(--catalog-ink); font-size: 13px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-copy p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--catalog-muted); font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-meta { display: block; margin-top: 6px; overflow: hidden; color: var(--catalog-primary-deep); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-open { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #a6abb5; background: #f5f3ff; }
.catalog-open svg { width: 15px; height: 15px; }
.catalog-empty { margin-top: 14px; padding: 28px 16px; border-radius: 10px; color: var(--catalog-muted); background: #fff; font-size: 11px; text-align: center; }
.catalog-sentinel { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #969ca7; font-size: 10px; }
.catalog-sentinel.done { color: #afb4bd; }
.catalog-sentinel.done .catalog-spinner { display: none; }
.catalog-spinner { width: 14px; height: 14px; display: inline-block; border: 2px solid #ddd8f7; border-top-color: var(--catalog-primary); border-radius: 50%; animation: catalog-spin .8s linear infinite; }
@keyframes catalog-spin { to { transform: rotate(360deg); } }
.catalog-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); }
.catalog-bottom-nav a { display: flex; align-items: center; justify-content: center; color: #969ba5; font-size: 10px; font-weight: 650; }
.catalog-bottom-nav a.active { color: var(--catalog-primary); font-weight: 850; }
@media (min-width: 751px) { body { padding-bottom: 0; } .catalog-bottom-nav { display: none; } }
