add some info
This commit is contained in:
256
src/App.vue
256
src/App.vue
@@ -18,12 +18,9 @@
|
|||||||
|
|
||||||
<!-- 搜索和过滤区域 -->
|
<!-- 搜索和过滤区域 -->
|
||||||
<div class="controls-section">
|
<div class="controls-section">
|
||||||
<!-- 搜索框 -->
|
|
||||||
<SearchBox v-if="!loading" @search="handleSearch" @clear="handleClearSearch"
|
|
||||||
:filteredCount="filteredCards.length" />
|
|
||||||
|
|
||||||
<!-- 智能分类标签云 -->
|
<!-- 智能分类标签云 -->
|
||||||
<div class="tags-cloud" v-if="!loading && !searchQuery">
|
<div class="tags-cloud" v-if="!loading && !searchQuery">
|
||||||
|
<div class="tags-scroll-container">
|
||||||
<div class="tags-wrapper">
|
<div class="tags-wrapper">
|
||||||
<button v-for="category in displayCategories" :key="category" class="tag-item" :class="{
|
<button v-for="category in displayCategories" :key="category" class="tag-item" :class="{
|
||||||
active: selectedCategory === category,
|
active: selectedCategory === category,
|
||||||
@@ -35,6 +32,18 @@
|
|||||||
<span class="tag-count">{{ getCategoryCount(category) }}</span>
|
<span class="tag-count">{{ getCategoryCount(category) }}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tags-wrapper" aria-hidden="true">
|
||||||
|
<button v-for="category in displayCategories" :key="category + '-dup'" class="tag-item" :class="{
|
||||||
|
active: selectedCategory === category,
|
||||||
|
popular: getCategoryCount(category) > 5,
|
||||||
|
trending: Math.random() > 0.7
|
||||||
|
}" @click="selectCategory(category)">
|
||||||
|
<span class="tag-icon">{{ getCategoryIcon(category) }}</span>
|
||||||
|
{{ category }}
|
||||||
|
<span class="tag-count">{{ getCategoryCount(category) }}</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 搜索结果统计 -->
|
<!-- 搜索结果统计 -->
|
||||||
@@ -44,6 +53,10 @@
|
|||||||
找到 <strong>{{ filteredCards.length }}</strong> 个精准结果
|
找到 <strong>{{ filteredCards.length }}</strong> 个精准结果
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 搜索框 -->
|
||||||
|
<SearchBox v-if="!loading" @search="handleSearch" @clear="handleClearSearch"
|
||||||
|
:filteredCount="filteredCards.length" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 智能内容展示区 -->
|
<!-- 智能内容展示区 -->
|
||||||
@@ -413,14 +426,14 @@ onMounted(() => {
|
|||||||
.hero-header {
|
.hero-header {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 12px 20px;
|
padding: 24px 20px 20px;
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.15);
|
||||||
backdrop-filter: blur(20px);
|
backdrop-filter: blur(20px);
|
||||||
border-radius: 0 0 20px 20px;
|
border-radius: 0 0 24px 24px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||||||
margin: 0 20px;
|
margin: 0 20px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-area {
|
.logo-area {
|
||||||
@@ -456,9 +469,10 @@ onMounted(() => {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 16px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 标签云 */
|
/* 标签云 */
|
||||||
@@ -466,34 +480,59 @@ onMounted(() => {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
order: -1;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-scroll-container {
|
||||||
|
display: flex;
|
||||||
|
animation: scroll-left 80s linear infinite;
|
||||||
|
width: max-content;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-scroll-container:hover {
|
||||||
|
animation-play-state: paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags-wrapper {
|
.tags-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: nowrap;
|
||||||
gap: 6px;
|
gap: 10px;
|
||||||
justify-content: center;
|
padding: 8px 0;
|
||||||
max-width: 1000px;
|
flex-shrink: 0;
|
||||||
padding: 4px 0;
|
}
|
||||||
|
|
||||||
|
.tags-wrapper:last-child {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes scroll-left {
|
||||||
|
0% {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item {
|
.tag-item {
|
||||||
padding: 6px 12px;
|
padding: 8px 16px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
background: rgba(255, 255, 255, 0.2);
|
background: rgba(255, 255, 255, 0.15);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 6px;
|
||||||
font-size: 0.85rem;
|
font-size: 0.9rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item::before {
|
.tag-item::before {
|
||||||
@@ -512,15 +551,18 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tag-item:hover {
|
.tag-item:hover {
|
||||||
background: rgba(255, 255, 255, 0.3);
|
background: rgba(255, 255, 255, 0.25);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
|
border-color: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item.active {
|
.tag-item.active {
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
transform: scale(1.05) translateY(-2px);
|
transform: scale(1.05) translateY(-2px);
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: transparent;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item.popular {
|
.tag-item.popular {
|
||||||
@@ -573,7 +615,7 @@ onMounted(() => {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 10px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 加载状态 */
|
/* 加载状态 */
|
||||||
@@ -608,9 +650,11 @@ onMounted(() => {
|
|||||||
/* 卡片网格 */
|
/* 卡片网格 */
|
||||||
.cards-grid {
|
.cards-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
||||||
gap: 16px;
|
gap: 20px;
|
||||||
padding: 10px;
|
padding: 8px;
|
||||||
|
max-width: 1400px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-wrapper {
|
.card-wrapper {
|
||||||
@@ -670,10 +714,11 @@ onMounted(() => {
|
|||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.15);
|
||||||
backdrop-filter: blur(20px);
|
backdrop-filter: blur(20px);
|
||||||
border-radius: 20px;
|
border-radius: 20px 20px 0 0;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.25);
|
border: 1px solid rgba(255, 255, 255, 0.25);
|
||||||
padding: 16px 20px;
|
border-bottom: none;
|
||||||
margin: 0 20px 20px;
|
padding: 20px 24px;
|
||||||
|
margin: 16px 20px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-content {
|
.footer-content {
|
||||||
@@ -805,57 +850,106 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 响应式设计 */
|
/* 响应式设计 */
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.cards-grid {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||||
|
gap: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.cards-grid {
|
.cards-grid {
|
||||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||||
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
font-size: 2.4rem;
|
font-size: 2.2rem;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
|
||||||
.main-content {
|
|
||||||
padding: 12px;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-header {
|
|
||||||
padding: 24px 16px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-title {
|
|
||||||
font-size: 1.8rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-subtitle {
|
|
||||||
font-size: 0.95rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tags-wrapper {
|
.tags-wrapper {
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-wrapper:last-child {
|
||||||
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag-item {
|
.tag-item {
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.main-content {
|
||||||
|
padding: 0;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-header {
|
||||||
|
padding: 20px 16px 16px;
|
||||||
|
margin: 0 12px 12px;
|
||||||
|
border-radius: 0 0 16px 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-title {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-subtitle {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls-section {
|
||||||
|
padding: 0 12px;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-wrapper {
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-wrapper:last-child {
|
||||||
|
margin-left: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-item {
|
||||||
|
padding: 5px 10px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
border-radius: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-scroll-container {
|
||||||
|
animation-duration: 60s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-section {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.cards-grid {
|
.cards-grid {
|
||||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||||
gap: 12px;
|
gap: 14px;
|
||||||
padding: 6px;
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-footer {
|
||||||
|
margin: 12px 12px 0;
|
||||||
|
padding: 16px 16px;
|
||||||
|
border-radius: 16px 16px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-content {
|
.footer-content {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-overview {
|
.stats-overview {
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
gap: 12px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.quick-actions {
|
.quick-actions {
|
||||||
@@ -869,27 +963,65 @@ onMounted(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
|
.hero-header {
|
||||||
|
padding: 16px 12px 12px;
|
||||||
|
margin: 0 8px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.hero-title {
|
.hero-title {
|
||||||
font-size: 1.5rem;
|
font-size: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-icon {
|
.logo-icon {
|
||||||
font-size: 2rem;
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls-section {
|
||||||
|
padding: 0 8px;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-wrapper {
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-wrapper:last-child {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-item {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tags-scroll-container {
|
||||||
|
animation-duration: 50s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content-section {
|
||||||
|
padding: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cards-grid {
|
.cards-grid {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-footer {
|
||||||
|
margin: 8px 8px 0;
|
||||||
|
padding: 12px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-overview {
|
.stats-overview {
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
gap: 8px;
|
justify-content: space-around;
|
||||||
|
gap: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-item {
|
.stat-item {
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
align-items: center;
|
||||||
width: 100%;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -69,11 +69,11 @@ defineExpose({
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 700px;
|
max-width: 600px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box {
|
.search-box {
|
||||||
@@ -81,9 +81,9 @@ defineExpose({
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: rgba(255, 255, 255, 0.95);
|
background: rgba(255, 255, 255, 0.95);
|
||||||
border-radius: 20px;
|
border-radius: 16px;
|
||||||
padding: 12px 16px;
|
padding: 14px 18px;
|
||||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
@@ -105,7 +105,7 @@ defineExpose({
|
|||||||
|
|
||||||
.search-box.is-focused {
|
.search-box.is-focused {
|
||||||
border-color: #667eea;
|
border-color: #667eea;
|
||||||
box-shadow: 0 6px 30px rgba(102, 126, 234, 0.3);
|
box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -137,10 +137,10 @@ input {
|
|||||||
border: none;
|
border: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-size: 1rem;
|
font-size: 1.05rem;
|
||||||
padding: 8px 4px;
|
padding: 6px 4px;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 500;
|
font-weight: 400;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
@@ -235,13 +235,13 @@ input::placeholder {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
padding: 8px 16px;
|
padding: 6px 14px;
|
||||||
border-radius: 12px;
|
border-radius: 20px;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 0.85rem;
|
font-size: 0.8rem;
|
||||||
opacity: 0.9;
|
opacity: 0.8;
|
||||||
animation: fadeIn 0.5s ease-out;
|
animation: fadeIn 0.5s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,19 +277,19 @@ input::placeholder {
|
|||||||
/* 响应式设计 */
|
/* 响应式设计 */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.search-container {
|
.search-container {
|
||||||
max-width: 95%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box {
|
.search-box {
|
||||||
padding: 10px 14px;
|
padding: 12px 14px;
|
||||||
border-radius: 16px;
|
border-radius: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-icon {
|
.search-icon {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
width: 20px;
|
width: 22px;
|
||||||
height: 20px;
|
height: 22px;
|
||||||
margin-right: 8px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@@ -297,8 +297,8 @@ input::placeholder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.clear-btn {
|
.clear-btn {
|
||||||
width: 24px;
|
width: 26px;
|
||||||
height: 24px;
|
height: 26px;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -308,14 +308,15 @@ input::placeholder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.search-hint {
|
.search-hint {
|
||||||
font-size: 0.8rem;
|
font-size: 0.78rem;
|
||||||
padding: 6px 12px;
|
padding: 5px 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.search-box {
|
.search-box {
|
||||||
padding: 8px 12px;
|
padding: 10px 12px;
|
||||||
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
@@ -324,7 +325,7 @@ input::placeholder {
|
|||||||
|
|
||||||
.search-hint {
|
.search-hint {
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
background: rgba(255, 255, 255, 0.1);
|
padding: 4px 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -147,14 +147,14 @@ const handleClick = (event) => {
|
|||||||
.smart-card {
|
.smart-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
background: rgba(255, 255, 255, 0.98);
|
background: rgba(255, 255, 255, 0.98);
|
||||||
border-radius: 16px;
|
border-radius: 14px;
|
||||||
padding: 16px;
|
padding: 18px;
|
||||||
min-height: 140px;
|
min-height: 150px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
user-select: none;
|
user-select: none;
|
||||||
transform-style: preserve-3d;
|
transform-style: preserve-3d;
|
||||||
@@ -177,8 +177,8 @@ const handleClick = (event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.smart-card.is-hovered {
|
.smart-card.is-hovered {
|
||||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
|
||||||
transform: translateY(-4px) scale(1.02);
|
transform: translateY(-4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.smart-card.is-pressed {
|
.smart-card.is-pressed {
|
||||||
@@ -212,14 +212,14 @@ const handleClick = (event) => {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 12px;
|
gap: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片头部 */
|
/* 卡片头部 */
|
||||||
.card-header {
|
.card-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 6px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-badge {
|
.category-badge {
|
||||||
@@ -237,12 +237,12 @@ const handleClick = (event) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 1.05rem;
|
font-size: 1.1rem;
|
||||||
font-weight: 800;
|
font-weight: 700;
|
||||||
color: #1a1a1a;
|
color: #1a1a1a;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
letter-spacing: -0.3px;
|
letter-spacing: -0.2px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -253,32 +253,32 @@ const handleClick = (event) => {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-description {
|
.card-description {
|
||||||
font-size: 0.85rem;
|
font-size: 0.88rem;
|
||||||
color: #555;
|
color: #555;
|
||||||
line-height: 1.4;
|
line-height: 1.5;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
min-height: 2.4em;
|
min-height: 2.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-url {
|
.card-url {
|
||||||
font-size: 0.75rem;
|
font-size: 0.78rem;
|
||||||
color: #888;
|
color: #777;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding: 4px 8px;
|
padding: 5px 10px;
|
||||||
background: rgba(0, 0, 0, 0.03);
|
background: rgba(0, 0, 0, 0.04);
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -398,22 +398,31 @@ const handleClick = (event) => {
|
|||||||
/* 响应式设计 */
|
/* 响应式设计 */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.smart-card {
|
.smart-card {
|
||||||
padding: 12px;
|
padding: 14px;
|
||||||
min-height: 120px;
|
min-height: 130px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-content {
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 0.95rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-description {
|
.card-description {
|
||||||
font-size: 0.8rem;
|
font-size: 0.82rem;
|
||||||
-webkit-line-clamp: 2;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-url {
|
.card-url {
|
||||||
font-size: 0.7rem;
|
font-size: 0.72rem;
|
||||||
|
padding: 4px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-badge {
|
.category-badge {
|
||||||
@@ -424,17 +433,21 @@ const handleClick = (event) => {
|
|||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.smart-card {
|
.smart-card {
|
||||||
padding: 10px;
|
padding: 12px;
|
||||||
min-height: 110px;
|
min-height: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-title {
|
.card-title {
|
||||||
font-size: 0.9rem;
|
font-size: 0.95rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-description {
|
.card-description {
|
||||||
-webkit-line-clamp: 1;
|
font-size: 0.8rem;
|
||||||
font-size: 0.75rem;
|
line-height: 1.4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-url {
|
||||||
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user