| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391 |
- /* pages/detail/detail.wxss */
- page {
- padding: 0;
- margin: 0;
- }
- .container {
- min-height: 100vh;
- background: linear-gradient(180deg, #f8f9ff 0%, #f5f5f5 100%);
- padding-bottom: 200rpx;
- padding-top: 0;
- margin-top: 0;
- }
- .header {
- display: flex;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
- padding: 30rpx 20rpx;
- margin-bottom: 24rpx;
- border-bottom: 1rpx solid rgba(102, 126, 234, 0.1);
- padding-top: calc(30rpx + env(safe-area-inset-top));
- }
- .cover-wrapper {
- width: 220rpx;
- height: 300rpx;
- margin-right: 32rpx;
- flex-shrink: 0;
- border-radius: 16rpx;
- overflow: hidden;
- box-shadow: 0 8rpx 24rpx rgba(102, 126, 234, 0.2);
- position: relative;
- }
- .cover-wrapper::after {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
- opacity: 0;
- transition: opacity 0.3s ease;
- pointer-events: none;
- }
- .cover {
- width: 100%;
- height: 100%;
- transition: transform 0.3s ease;
- }
- .cover-placeholder {
- width: 100%;
- height: 100%;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 24rpx;
- box-sizing: border-box;
- position: relative;
- }
- .cover-text {
- color: #fff;
- font-size: 26rpx;
- font-weight: 500;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 4;
- -webkit-box-orient: vertical;
- line-height: 1.5;
- }
- .info {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- min-width: 0;
- }
- .title {
- font-size: 38rpx;
- font-weight: 600;
- color: #1a1a1a;
- margin-bottom: 20rpx;
- line-height: 1.4;
- }
- .author {
- font-size: 28rpx;
- color: #666;
- margin-bottom: 20rpx;
- font-weight: 500;
- }
- .meta {
- display: flex;
- flex-wrap: wrap;
- gap: 12rpx;
- margin-bottom: 20rpx;
- }
- .meta text {
- font-size: 24rpx;
- color: #667eea;
- padding: 8rpx 18rpx;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
- border-radius: 16rpx;
- font-weight: 500;
- }
- .publisher {
- font-size: 26rpx;
- color: #8a8a8a;
- font-weight: 500;
- }
- .description {
- background: #fff;
- padding: 40rpx 20rpx;
- margin: 0 0 24rpx 0;
- border-radius: 0;
- box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.08);
- width: 100%;
- box-sizing: border-box;
- }
- .section-title {
- font-size: 32rpx;
- font-weight: 600;
- color: #1a1a1a;
- margin-bottom: 24rpx;
- position: relative;
- padding-left: 20rpx;
- }
- .section-title::before {
- content: '';
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 6rpx;
- height: 28rpx;
- background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
- border-radius: 3rpx;
- }
- .desc-text {
- font-size: 28rpx;
- color: #666;
- line-height: 1.9;
- text-align: justify;
- }
- .actions {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- background: #fff;
- padding: 24rpx 30rpx;
- padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
- box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
- gap: 16rpx;
- }
- .action-btn {
- flex: 1;
- min-height: 88rpx;
- text-align: center;
- border-radius: 16rpx;
- font-size: 28rpx;
- font-weight: 500;
- border: none;
- transition: all 0.3s ease;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 4rpx;
- padding: 12rpx 8rpx;
- box-sizing: border-box;
- }
- .action-btn::after {
- border: none;
- }
- .action-btn.primary {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: #fff;
- box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
- }
- .action-btn.primary:active {
- transform: scale(0.98);
- box-shadow: 0 2rpx 12rpx rgba(102, 126, 234, 0.4);
- }
- .action-btn:not(.primary) {
- background: #fff;
- color: #1a1a1a;
- border: 2rpx solid #c0c0c0;
- font-weight: 600;
- }
- .action-btn:not(.primary):active {
- background: #f5f5f5;
- border-color: #999;
- transform: scale(0.98);
- }
- .action-btn.primary {
- flex-direction: row;
- gap: 8rpx;
- }
- .btn-icon {
- font-size: 40rpx;
- font-weight: bold;
- color: #667eea;
- line-height: 1;
- display: block;
- }
- .action-btn.primary .btn-icon {
- display: none;
- }
- .chapter-section {
- background: #fff;
- padding: 40rpx 20rpx;
- margin: 0 0 24rpx 0;
- border-radius: 0;
- box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.08);
- width: 100%;
- box-sizing: border-box;
- }
- .chapter-section .section-title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 32rpx;
- font-weight: 600;
- color: #1a1a1a;
- margin-bottom: 24rpx;
- padding-left: 20rpx;
- }
- .chapter-count {
- font-size: 26rpx;
- font-weight: normal;
- color: #8a8a8a;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
- padding: 4rpx 14rpx;
- border-radius: 12rpx;
- }
- .chapter-list,
- .chapter-preview {
- max-height: 600rpx;
- overflow-y: auto;
- }
- .chapter-item {
- display: flex;
- align-items: center;
- padding: 24rpx 0;
- border-bottom: 1rpx solid #f0f0f0;
- transition: all 0.3s ease;
- position: relative;
- }
- .chapter-item::before {
- content: '';
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 4rpx;
- background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
- opacity: 0;
- transition: opacity 0.3s ease;
- }
- .chapter-item:active {
- background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
- padding-left: 12rpx;
- }
- .chapter-item:active::before {
- opacity: 1;
- }
- .chapter-item:last-child {
- border-bottom: none;
- }
- .chapter-number {
- width: 60rpx;
- font-size: 24rpx;
- color: #999;
- text-align: center;
- font-weight: 500;
- flex-shrink: 0;
- }
- .chapter-title {
- flex: 1;
- font-size: 28rpx;
- color: #333;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- margin: 0 16rpx;
- font-weight: 500;
- }
- .chapter-free {
- font-size: 22rpx;
- color: #667eea;
- padding: 6rpx 14rpx;
- background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
- border-radius: 12rpx;
- font-weight: 500;
- flex-shrink: 0;
- }
- .no-chapters {
- background: #fff;
- padding: 80rpx 20rpx;
- text-align: center;
- color: #999;
- font-size: 28rpx;
- margin: 0 0 24rpx 0;
- border-radius: 0;
- box-shadow: 0 4rpx 20rpx rgba(102, 126, 234, 0.08);
- width: 100%;
- box-sizing: border-box;
- }
- .no-chapters::before {
- content: '📑';
- font-size: 80rpx;
- display: block;
- margin-bottom: 20rpx;
- opacity: 0.3;
- }
- .loading {
- text-align: center;
- padding: 200rpx 40rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .loading text {
- font-size: 28rpx;
- color: #999;
- margin-top: 20rpx;
- }
- .loading::before {
- content: '';
- width: 40rpx;
- height: 40rpx;
- border: 4rpx solid #f0f0f0;
- border-top-color: #667eea;
- border-radius: 50%;
- animation: spin 0.8s linear infinite;
- }
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
|