/* pages/read/read.wxss */ .container { min-height: 100vh; padding: 50rpx 40rpx; padding-bottom: 140rpx; transition: background-color 0.3s ease; } .content { min-height: calc(100vh - 250rpx); max-width: 700rpx; margin: 0 auto; } .chapter-title { font-size: 38rpx; font-weight: 600; text-align: center; margin-bottom: 50rpx; padding-bottom: 30rpx; border-bottom: 2rpx solid rgba(0, 0, 0, 0.08); color: #1a1a1a; line-height: 1.5; position: relative; } .chapter-title::after { content: ''; position: absolute; bottom: -2rpx; left: 50%; transform: translateX(-50%); width: 60rpx; height: 2rpx; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); } .chapter-content { line-height: 2.2; color: #333; text-align: justify; font-size: 32rpx; letter-spacing: 1rpx; word-spacing: 2rpx; } .toolbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20rpx); border-top: 1rpx solid rgba(0, 0, 0, 0.08); padding: 24rpx 0; padding-bottom: calc(24rpx + env(safe-area-inset-bottom)); box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.08); z-index: 10; } .tool-item { flex: 1; text-align: center; font-size: 28rpx; color: #333; padding: 12rpx; font-weight: 500; transition: all 0.3s ease; position: relative; } .tool-item:active { color: #667eea; transform: scale(0.95); } .tool-item::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 4rpx; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 2rpx; transition: width 0.3s ease; } .tool-item:active::before { width: 60%; } .settings-panel { position: fixed; bottom: 100rpx; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20rpx); padding: 40rpx 30rpx; padding-bottom: calc(40rpx + env(safe-area-inset-bottom)); box-shadow: 0 -4rpx 30rpx rgba(0, 0, 0, 0.12); z-index: 100; border-top-left-radius: 24rpx; border-top-right-radius: 24rpx; animation: slideUp 0.3s ease; } @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } } .settings-title { font-size: 34rpx; font-weight: 600; margin-bottom: 36rpx; color: #1a1a1a; text-align: center; position: relative; padding-bottom: 20rpx; } .settings-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60rpx; height: 4rpx; background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); border-radius: 2rpx; } .setting-item { margin-bottom: 36rpx; } .setting-item:last-child { margin-bottom: 0; } .setting-label { font-size: 28rpx; color: #666; margin-bottom: 24rpx; display: block; font-weight: 500; } .font-slider-container { display: flex; align-items: center; gap: 20rpx; } .font-slider { flex: 1; } .font-size-text { font-size: 26rpx; color: #667eea; min-width: 90rpx; text-align: right; font-weight: 600; background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%); padding: 8rpx 16rpx; border-radius: 12rpx; } .color-picker { display: flex; gap: 24rpx; justify-content: center; padding: 10rpx 0; } .color-item { width: 70rpx; height: 70rpx; border-radius: 50%; border: 4rpx solid transparent; transition: all 0.3s ease; box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1); position: relative; } .color-item::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24rpx; height: 24rpx; background: #fff; border-radius: 50%; opacity: 0; transition: opacity 0.3s ease; } .color-item.active { border-color: #667eea; transform: scale(1.1); box-shadow: 0 6rpx 20rpx rgba(102, 126, 234, 0.3); } .color-item.active::after { opacity: 1; } .mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 99; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }