12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- // 在文件末尾添加
- .liked {
- color: #ff6b6b; // 红色
- }
- // 阻止图标点击时的文本选中
- .work-stats span {
- user-select: none;
- }
- .work-stats span {
- transition: color 0.3s ease;
- }
- .popular-works {
- margin: 20px;
- }
- .section-title {
- font-size: 20px;
- font-weight: 700;
- margin-bottom: 15px;
- color: #333;
- position: relative;
- padding-left: 15px;
- &::before {
- content: '';
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 4px;
- height: 20px;
- background: linear-gradient(45deg, #ff6b6b, #ffa726);
- border-radius: 2px;
- }
- }
- .works-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 15px;
- }
- .work-item {
- background: #fff;
- border-radius: 15px;
- overflow: hidden;
- box-shadow: 0 5px 20px rgba(0,0,0,0.1);
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
- cursor: pointer;
- &:hover {
- transform: translateY(-8px);
- box-shadow: 0 15px 40px rgba(0,0,0,0.2);
- }
- }
- .work-image {
- height: 120px;
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 36px;
- }
- .work-info {
- padding: 12px;
- }
- .work-title {
- font-size: 14px;
- font-weight: 600;
- margin-bottom: 4px;
- color: #333;
- }
- .work-stats {
- display: flex;
- justify-content: space-between;
- font-size: 12px;
- color: #666;
- span {
- cursor: pointer;
- transition: all 0.2s ease;
- &:hover {
- opacity: 0.8;
- }
- }
- }
- .liked {
- color: #ff6b6b;
- }
|