/** * 专题书架 — 书本式卡片 */ .topic-shelf-page .topic-shelf-header { margin-bottom: 2rem; } .topic-shelf-lead { margin: 0; text-align: center; font-size: 0.95rem; color: rgba(17, 17, 17, 0.75); line-height: 1.6; } .topic-book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2.25rem 1.75rem; align-items: stretch; } .topic-book-item { margin: 0; display: flex; } .topic-book { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; width: 100%; min-height: 100%; transition: transform 0.35s ease; } .topic-book:hover, .topic-book:focus-visible { transform: translateY(-6px); text-decoration: none; color: inherit; } .topic-book__volume { position: relative; display: flex; align-items: stretch; width: 12.5rem; height: 17.5rem; margin-bottom: 1.1rem; perspective: 900px; filter: drop-shadow(0 14px 28px rgba(61, 32, 64, 0.35)); } .topic-book__spine { width: 1.65rem; flex-shrink: 0; background: linear-gradient(180deg, #5c2d4a 0%, #3d2040 55%, #2a1528 100%); border-radius: 4px 0 0 4px; box-shadow: inset -2px 0 6px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; padding: 0.65rem 0.15rem; } /* 书脊竖排:汉字正向自上而下(勿 rotate 180°) */ .topic-book__spine-title { writing-mode: vertical-rl; text-orientation: upright; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; color: rgba(255, 232, 245, 0.92); line-height: 1.45; max-height: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topic-book__cover { position: relative; flex: 1; overflow: hidden; border-radius: 0 6px 6px 0; background: #2a1528; transform-origin: left center; transition: transform 0.4s ease; } .topic-book:hover .topic-book__cover { transform: rotateY(-8deg); } .topic-book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; } .topic-book__shine { pointer-events: none; position: absolute; inset: 0; background: linear-gradient( 125deg, rgba(255, 255, 255, 0.28) 0%, transparent 42%, transparent 58%, rgba(253, 189, 219, 0.12) 100% ); } .topic-book__info { display: flex; flex-direction: column; align-items: center; text-align: center; width: 14rem; min-height: 10.5rem; flex: 1; } .topic-book__title { margin: 0 0 0.5rem; min-height: 2.85rem; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 600; color: #1a1020; line-height: 1.35; } .topic-book__summary { flex: 1; width: 100%; min-height: 3.9rem; margin: 0 0 0.75rem; font-size: 0.8125rem; line-height: 1.55; color: rgba(26, 16, 32, 0.72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .topic-book__summary:empty::before { content: '\00a0'; visibility: hidden; } .topic-book__cta { display: inline-block; margin-top: auto; flex-shrink: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: #6b3458; padding: 0.28rem 0.85rem; border-radius: 999px; background: rgba(253, 189, 219, 0.35); border: 1px solid rgba(253, 189, 219, 0.55); transition: background 0.2s, box-shadow 0.2s; } .topic-book:hover .topic-book__cta { background: rgba(253, 189, 219, 0.55); box-shadow: 0 4px 12px rgba(253, 189, 219, 0.3); } .topic-shelf-empty { text-align: center; padding: 3rem 1rem; color: rgba(17, 17, 17, 0.65); } @media (max-width: 576px) { .topic-book-grid { grid-template-columns: 1fr; justify-items: center; } .topic-book__volume { width: 11rem; height: 15.5rem; } } @media (prefers-reduced-motion: reduce) { .topic-book, .topic-book__cover { transition: none; } .topic-book:hover, .topic-book:focus-visible { transform: none; } .topic-book:hover .topic-book__cover { transform: none; } }