123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425 |
- @use '../../../../styles/variables' as *;
- @use '../../../../styles/mixins' as *;
- .notifications-container {
- min-height: 100vh;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- padding-bottom: 80px;
- .header {
- @include header-style();
- background: rgba(255, 255, 255, 0.95);
- backdrop-filter: blur(15px);
- border-bottom: 1px solid rgba(0, 0, 0, 0.05);
- box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
- position: sticky;
- top: 0;
- z-index: 100;
- .header-left {
- .back-icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- transition: all 0.3s ease;
- &:hover {
- transform: scale(1.1);
- color: var(--primary-dark);
- }
- }
- }
- .header-title {
- font-size: 18px;
- font-weight: 600;
- color: var(--text-primary);
- background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- background-clip: text;
- }
- .header-right {
- .mark-all-read {
- padding: 8px 16px;
- background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
- color: white;
- border-radius: 20px;
- font-size: 12px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s ease;
- box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
- }
- }
- }
- }
- .notifications-list {
- padding: 20px;
- display: flex;
- flex-direction: column;
- gap: 16px;
- .notification-item {
- display: flex;
- align-items: flex-start;
- gap: 16px;
- padding: 20px;
- background: rgba(255, 255, 255, 0.95);
- border-radius: 16px;
- box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
- transition: all 0.3s ease;
- cursor: pointer;
- border: 1px solid rgba(255, 255, 255, 0.2);
- backdrop-filter: blur(10px);
- position: relative;
- overflow: hidden;
- &::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- width: 4px;
- height: 100%;
- background: transparent;
- transition: all 0.3s ease;
- }
- &:hover {
- transform: translateY(-3px);
- box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
- &::before {
- background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
- }
- }
- &.unread {
- background: rgba(255, 255, 255, 0.98);
- border-color: rgba(var(--primary-rgb), 0.2);
- box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.15);
- &::before {
- background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
- }
- .notification-content {
- .notification-title {
- font-weight: 700;
- color: var(--text-primary);
- }
- }
- }
- .notification-icon {
- position: relative;
- flex-shrink: 0;
- width: 48px;
- height: 48px;
- border-radius: 50%;
- background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
- @include center-flex;
- box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
- .icon {
- width: 24px;
- height: 24px;
- color: var(--primary-color);
- }
- .unread-dot {
- position: absolute;
- top: 2px;
- right: 2px;
- width: 12px;
- height: 12px;
- background: linear-gradient(135deg, #ff4757, #ff3742);
- border-radius: 50%;
- border: 2px solid white;
- box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
- animation: pulse 2s infinite;
- }
- }
- .notification-content {
- flex: 1;
- min-width: 0;
- .notification-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: 8px;
- gap: 12px;
- .notification-title {
- font-size: 16px;
- font-weight: 600;
- color: var(--text-primary);
- line-height: 1.4;
- flex: 1;
- min-width: 0;
- word-break: break-word;
- }
- .notification-time {
- font-size: 12px;
- color: var(--text-secondary);
- white-space: nowrap;
- flex-shrink: 0;
- background: rgba(var(--text-secondary-rgb), 0.1);
- padding: 4px 8px;
- border-radius: 8px;
- }
- }
- .notification-message {
- font-size: 14px;
- color: var(--text-secondary);
- line-height: 1.5;
- word-break: break-word;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
- }
- .notification-actions {
- flex-shrink: 0;
- .delete-btn {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- background: rgba(255, 255, 255, 0.8);
- @include center-flex;
- cursor: pointer;
- transition: all 0.3s ease;
- border: 1px solid rgba(0, 0, 0, 0.1);
- .delete-icon {
- width: 18px;
- height: 18px;
- color: var(--text-secondary);
- transition: all 0.3s ease;
- }
- &:hover {
- background: #ff4757;
- border-color: #ff4757;
- transform: scale(1.1);
- box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
- .delete-icon {
- color: white;
- }
- }
- }
- }
- }
- }
- .empty-state {
- @include center-flex;
- flex-direction: column;
- padding: 80px 20px;
- text-align: center;
- .empty-icon {
- width: 100px;
- height: 100px;
- color: rgba(255, 255, 255, 0.6);
- margin-bottom: 24px;
- opacity: 0.8;
- }
- .empty-text {
- font-size: 20px;
- font-weight: 600;
- color: rgba(255, 255, 255, 0.9);
- text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
- }
- }
- }
- @keyframes pulse {
- 0% {
- transform: scale(1);
- opacity: 1;
- }
- 50% {
- transform: scale(1.2);
- opacity: 0.7;
- }
- 100% {
- transform: scale(1);
- opacity: 1;
- }
- }
- // 平板响应式设计
- @include tablet {
- .notifications-container {
- .notifications-list {
- padding: 24px;
- gap: 20px;
- .notification-item {
- padding: 24px;
- .notification-icon {
- width: 52px;
- height: 52px;
- .icon {
- width: 26px;
- height: 26px;
- }
- }
- .notification-content {
- .notification-header {
- .notification-title {
- font-size: 17px;
- }
- .notification-time {
- font-size: 13px;
- }
- }
- .notification-message {
- font-size: 15px;
- }
- }
- }
- }
- .empty-state {
- padding: 100px 24px;
- .empty-icon {
- width: 120px;
- height: 120px;
- }
- .empty-text {
- font-size: 22px;
- }
- }
- }
- }
- // 移动端响应式设计
- @include mobile {
- .notifications-container {
- .header {
- padding: 12px 16px;
- .header-title {
- font-size: 16px;
- }
- .header-left {
- .back-icon {
- width: 20px;
- height: 20px;
- }
- }
- .header-right {
- .mark-all-read {
- padding: 6px 12px;
- font-size: 11px;
- }
- }
- }
- .notifications-list {
- padding: 16px;
- gap: 12px;
- .notification-item {
- padding: 16px;
- gap: 12px;
- .notification-icon {
- width: 40px;
- height: 40px;
- .icon {
- width: 20px;
- height: 20px;
- }
- .unread-dot {
- width: 10px;
- height: 10px;
- top: 1px;
- right: 1px;
- }
- }
- .notification-content {
- .notification-header {
- margin-bottom: 6px;
- gap: 8px;
- .notification-title {
- font-size: 14px;
- }
- .notification-time {
- font-size: 11px;
- padding: 3px 6px;
- }
- }
- .notification-message {
- font-size: 13px;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- line-clamp: 3;
- -webkit-box-orient: vertical;
- overflow: hidden;
- }
- }
- .notification-actions {
- .delete-btn {
- width: 32px;
- height: 32px;
- .delete-icon {
- width: 16px;
- height: 16px;
- }
- }
- }
- }
- }
- .empty-state {
- padding: 60px 16px;
- .empty-icon {
- width: 80px;
- height: 80px;
- margin-bottom: 20px;
- }
- .empty-text {
- font-size: 18px;
- }
- }
- }
- }
|