123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- /* Tab栏样式 */
- .tab-container {
- position: sticky;
- top: 0;
- background-color: #fff;
- z-index: 99;
- margin-top:60px ;
- }
- .tab-scroll {
- white-space: nowrap;
- width: 100%;
- height: 44px;
- line-height: 44px;
- }
- .tab-item {
- display: inline-block;
- padding: 0 16px;
- font-size: 15px;
- color: #666;
- position: relative;
- }
- .tab-item.active {
- color: #ff2442;
- font-weight: bold;
- }
- .tab-item.active::after {
- content: "";
- position: absolute;
- bottom: 6px;
- left: 50%;
- transform: translateX(-50%);
- width: 16px;
- height: 3px;
- background-color: #ff2442;
- border-radius: 1.5px;
- }
- /* 卡片列表样式 */
- .content-container {
- background-color: #f7f7f7;
- }
- .card-list {
- padding: 10px;
- }
- .card {
- background-color: #fff;
- border-radius: 8px;
- margin-bottom: 10px;
- padding: 12px;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
- }
- .user-info {
- display: flex;
- align-items: center;
- margin-bottom: 10px;
- }
- .avatar {
- width: 32px;
- height: 32px;
- border-radius: 50%;
- margin-right: 8px;
- }
- .username {
- font-size: 14px;
- color: #333;
- font-weight: bold;
- margin-right: 10px;
- }
- .time {
- font-size: 12px;
- color: #999;
- }
- .content {
- margin-bottom: 12px;
- }
- .title {
- font-size: 16px;
- font-weight: bold;
- margin-bottom: 6px;
- display: block;
- }
- .desc {
- font-size: 14px;
- color: #333;
- line-height: 1.5;
- display: block;
- margin-bottom: 10px;
- }
- .images {
- display: flex;
- flex-wrap: wrap;
- margin: 0 -2px;
- }
- .image {
- width: calc(33.333% - 4px);
- height: 100px;
- margin: 2px;
- border-radius: 4px;
- }
- .actions {
- display: flex;
- border-top: 1px solid #f0f0f0;
- padding-top: 10px;
- }
- .action-item {
- display: flex;
- align-items: center;
- margin-right: 20px;
- font-size: 12px;
- color: #666;
- }
- .action-item icon {
- margin-right: 4px;
- }
- .load-more, .no-more {
- text-align: center;
- padding: 15px 0;
- font-size: 12px;
- color: #999;
- }
- .no-more {
- padding-bottom: 30px;
- }
- /* 方案一:经典小红书风格 */
- .fab-container {
- position: fixed;
- right: 32rpx;
- bottom: 128rpx;
- z-index: 100;
- }
- .fab-button {
- width: 120rpx;
- height: 120rpx;
- border-radius: 60rpx;
- background: linear-gradient(135deg, #FF2442, #FF5F7E);
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- box-shadow: 0 8rpx 24rpx rgba(255, 36, 66, 0.3);
- transition: all 0.3s ease;
- }
- .fab-button:active {
- transform: scale(0.95);
- opacity: 0.9;
- }
- .fab-icon {
- font-size: 48rpx;
- font-weight: 300;
- color: #fff;
- line-height: 1;
- margin-bottom: 4rpx;
- }
- .fab-text {
- font-size: 24rpx;
- color: #fff;
- font-weight: 500;
- }
- /* 操作区样式 */
- .actions {
- display: flex;
- padding: 20rpx 0;
- border-top: 1rpx solid #f0f0f0;
- }
- .action-item {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .action-icon {
- width: 36rpx;
- height: 36rpx;
- margin-right: 10rpx;
- }
- .action-icon {
- transition: transform 0.3s;
- }
- .action-item:active .action-icon {
- transform: scale(1.2);
- }
- /* 点击效果 */
- .grid-image:active {
- transform: scale(0.95);
- opacity: 0.9;
- }
|