.home-hero { margin: 40px 20px 40px; /* background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); */ text-align: center; } .avatar-container { width: 120px; height: 120px; margin: 0 auto; position: relative; } .avatar-container .author { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 20px; font-weight: bold; } .avatar-container:hover .avatar { transform: rotate(360deg); left: 100%; } .avatar { position: relative; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; left: 0; transform-origin: center center; transition: 0.5s transform ease-in-out, 0.5s left ease-in-out; } .card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-radius: 8px; padding: 20px; width: 300px; margin: 0 auto; margin-bottom: 40px; text-align: center; } /* 收藏网站样式 */ .bookmarks-container { max-width: 1200px; margin: 0 auto; padding: 20px; color: white; } /* 搜索区域 */ .search-section { margin-bottom: 30px; } .search-box { display: flex; gap: 15px; align-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-radius: 12px; padding: 20px; } .search-input { flex: 1; background: rgba(255, 255, 255, 0.2); border: none; border-radius: 8px; padding: 12px 16px; color: white; font-size: 16px; outline: none; } .search-input::placeholder { color: rgba(255, 255, 255, 0.7); } .search-btn, .add-btn { background: rgba(59, 130, 246, 0.8); border: none; border-radius: 8px; padding: 12px 20px; color: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .search-btn:hover, .add-btn:hover { background: rgba(59, 130, 246, 1); transform: translateY(-2px); } .add-btn { background: rgba(16, 185, 129, 0.8); } .add-btn:hover { background: rgba(16, 185, 129, 1); } /* 导航区域 */ .navigation-section { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; } .categories-nav, .tags-cloud { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-radius: 12px; padding: 20px; } .nav-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: rgba(255, 255, 255, 0.9); } .category-list, .tag-list { display: flex; flex-wrap: wrap; gap: 10px; } .category-item, .tag-item { background: rgba(255, 255, 255, 0.2); border-radius: 20px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; } .category-item:hover, .tag-item:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); } .category-item.active, .tag-item.active { border-color: rgba(59, 130, 246, 0.8); background: rgba(59, 130, 246, 0.3); } /* 收藏区域 */ .bookmarks-section { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); border-radius: 12px; padding: 20px; margin-bottom: 30px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); } .section-header h2 { margin: 0; font-size: 24px; font-weight: 600; } .view-controls { display: flex; gap: 10px; } .view-btn { background: rgba(255, 255, 255, 0.2); border: none; border-radius: 6px; padding: 8px 16px; color: white; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .view-btn:hover { background: rgba(255, 255, 255, 0.3); } .view-btn.active { background: rgba(59, 130, 246, 0.8); } /* 网格视图 */ .bookmarks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .bookmark-card { background: rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 20px; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); } .bookmark-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.3); } .bookmark-header { display: flex; align-items: center; margin-bottom: 15px; } .bookmark-favicon { width: 32px; height: 32px; border-radius: 6px; margin-right: 12px; object-fit: cover; } .bookmark-title { font-size: 18px; font-weight: 600; margin: 0; color: white; flex: 1; } .bookmark-favorite { background: none; border: none; color: #fbbf24; font-size: 20px; cursor: pointer; padding: 5px; border-radius: 50%; transition: all 0.3s ease; } .bookmark-favorite:hover { background: rgba(251, 191, 36, 0.2); } .bookmark-favorite.active { color: #f59e0b; } .bookmark-description { color: rgba(255, 255, 255, 0.8); margin-bottom: 15px; line-height: 1.5; } .bookmark-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .bookmark-category { background: rgba(59, 130, 246, 0.3); color: rgba(59, 130, 246, 1); padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; } .bookmark-stats { display: flex; gap: 15px; color: rgba(255, 255, 255, 0.6); font-size: 12px; } .bookmark-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; } .bookmark-tag { background: rgba(255, 255, 255, 0.2); color: white; padding: 4px 10px; border-radius: 10px; font-size: 11px; } .bookmark-actions { display: flex; gap: 10px; } .bookmark-btn { flex: 1; background: rgba(255, 255, 255, 0.2); border: none; border-radius: 6px; padding: 8px 12px; color: white; font-size: 12px; cursor: pointer; transition: all 0.3s ease; } .bookmark-btn:hover { background: rgba(255, 255, 255, 0.3); } .bookmark-btn.primary { background: rgba(59, 130, 246, 0.8); } .bookmark-btn.primary:hover { background: rgba(59, 130, 246, 1); } /* 列表视图 */ .bookmarks-list { display: none; } .bookmark-list-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.3s ease; } .bookmark-list-item:hover { background: rgba(255, 255, 255, 0.05); } .bookmark-list-item:last-child { border-bottom: none; } .bookmark-list-favicon { width: 24px; height: 24px; border-radius: 4px; margin-right: 15px; } .bookmark-list-content { flex: 1; } .bookmark-list-title { font-size: 16px; font-weight: 600; margin: 0 0 5px 0; color: white; } .bookmark-list-description { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 0; } .bookmark-list-meta { display: flex; gap: 15px; margin-left: 20px; } /* 分页 */ .pagination-section { display: flex; justify-content: center; margin-top: 30px; } .pagination { display: flex; gap: 10px; align-items: center; } .pagination-btn { background: rgba(255, 255, 255, 0.2); border: none; border-radius: 6px; padding: 8px 12px; color: white; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .pagination-btn:hover { background: rgba(255, 255, 255, 0.3); } .pagination-btn.active { background: rgba(59, 130, 246, 0.8); } .pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* 模态框 */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; } .modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); } .modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(20px); border-radius: 16px; padding: 0; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; border: 1px solid rgba(255, 255, 255, 0.1); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .modal-header h3 { margin: 0; color: white; font-size: 20px; font-weight: 600; } .modal-close { background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 24px; cursor: pointer; padding: 5px; border-radius: 50%; transition: all 0.3s ease; } .modal-close:hover { color: white; background: rgba(255, 255, 255, 0.1); } .modal-body { padding: 25px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; color: white; font-weight: 500; font-size: 14px; } .form-group input, .form-group textarea, .form-group select { width: 100%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 12px 16px; color: white; font-size: 14px; outline: none; transition: all 0.3s ease; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: rgba(59, 130, 246, 0.8); background: rgba(255, 255, 255, 0.15); } .form-group textarea { resize: vertical; min-height: 80px; } .form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.5); } .extra-links { margin-bottom: 15px; } .extra-link-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; } .extra-link-item .link-title { flex: 1; } .extra-link-item .link-url { flex: 2; } .remove-link { background: rgba(239, 68, 68, 0.8); border: none; border-radius: 6px; padding: 8px 12px; color: white; font-size: 12px; cursor: pointer; transition: all 0.3s ease; } .remove-link:hover { background: rgba(239, 68, 68, 1); } .add-link-btn { background: rgba(16, 185, 129, 0.8); border: none; border-radius: 6px; padding: 8px 16px; color: white; font-size: 14px; cursor: pointer; transition: all 0.3s ease; } .add-link-btn:hover { background: rgba(16, 185, 129, 1); } .form-actions { display: flex; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .submit-btn, .cancel-btn { flex: 1; padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; } .submit-btn { background: rgba(59, 130, 246, 0.8); color: white; } .submit-btn:hover { background: rgba(59, 130, 246, 1); transform: translateY(-2px); } .cancel-btn { background: rgba(255, 255, 255, 0.2); color: white; } .cancel-btn:hover { background: rgba(255, 255, 255, 0.3); } /* 响应式设计 */ @media screen and (max-width: 768px) { .home-hero { margin: 0; margin-top: 20px; } .bookmarks-container { padding: 15px; } .search-box { flex-direction: column; align-items: stretch; } .navigation-section { grid-template-columns: 1fr; gap: 15px; } .section-header { flex-direction: column; gap: 15px; align-items: stretch; } .bookmarks-grid { grid-template-columns: 1fr; } .modal-content { width: 95%; margin: 20px; } .form-actions { flex-direction: column; } } /* 加载状态 */ .loading { text-align: center; padding: 40px; color: rgba(255, 255, 255, 0.7); } .loading::after { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: white; animation: spin 1s ease-in-out infinite; margin-left: 10px; } @keyframes spin { to { transform: rotate(360deg); } } /* 空状态 */ .empty-state { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, 0.7); } .empty-state h3 { margin: 0 0 15px 0; font-size: 20px; color: white; } .empty-state p { margin: 0 0 25px 0; font-size: 16px; } .empty-state .empty-btn { background: rgba(59, 130, 246, 0.8); border: none; border-radius: 8px; padding: 12px 24px; color: white; font-size: 16px; cursor: pointer; transition: all 0.3s ease; } .empty-state .empty-btn:hover { background: rgba(59, 130, 246, 1); transform: translateY(-2px); }