Files
rust-imager/assets/css/style.css
lychang 5893cd5e31 init
2026-03-20 02:31:07 +08:00

228 lines
5.5 KiB
CSS

/* 现代化蓝白配色体系 */
:root {
--primary-blue: #1e40af;
--secondary-blue: #3b82f6;
--light-blue: #dbeafe;
--accent-blue: #60a5fa;
--white: #ffffff;
--light-gray: #f8fafc;
--medium-gray: #e2e8f0;
--dark-gray: #475569;
--text-dark: #1e293b;
--text-light: #64748b;
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
--border-radius: 12px;
--border-radius-lg: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
min-height: 100vh;
color: var(--text-dark);
line-height: 1.6;
}
.container {
max-width: 1400px;
margin: 0 auto;
padding: 30px 20px;
}
.header {
text-align: center;
margin-bottom: 50px;
color: var(--text-dark);
}
.header h1 {
font-size: 3rem;
margin-bottom: 15px;
font-weight: 700;
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header p {
font-size: 1.3rem;
color: var(--text-light);
max-width: 600px;
margin: 0 auto;
}
.search-container {
text-align: center;
margin-bottom: 50px;
}
.search-box {
position: relative;
display: inline-block;
max-width: 500px;
width: 100%;
}
.search-box input {
width: 100%;
padding: 18px 60px 18px 25px;
font-size: 16px;
border: 2px solid var(--medium-gray);
border-radius: 50px;
background: var(--white);
box-shadow: var(--shadow-md);
transition: all 0.3s ease;
color: var(--text-dark);
}
.search-box input:focus {
outline: none;
border-color: var(--secondary-blue);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
transform: translateY(-2px);
}
.search-box button {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
background: var(--secondary-blue);
border: none;
color: var(--white);
font-size: 18px;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.search-box button:hover {
background: var(--primary-blue);
transform: translateY(-50%) scale(1.05);
}
.stats {
text-align: center;
color: var(--text-dark);
margin-bottom: 40px;
font-size: 1.1rem;
background: var(--white);
padding: 20px;
border-radius: var(--border-radius);
box-shadow: var(--shadow-sm);
border: 1px solid var(--medium-gray);
}
.albums-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
margin-bottom: 40px;
}
.album-card {
background: var(--white);
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow-lg);
overflow: hidden;
transition: all 0.3s ease;
position: relative;
border: 1px solid var(--medium-gray);
}
.album-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-xl);
border-color: var(--accent-blue);
}
.album-cover {
height: 220px;
overflow: hidden;
position: relative;
background: var(--light-gray);
}
.album-cover img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.album-card:hover .album-cover img {
transform: scale(1.05);
}
.album-info {
padding: 25px;
}
.album-info h2 {
font-size: 1.4rem;
margin-bottom: 12px;
color: var(--text-dark);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: 600;
}
.album-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
color: var(--text-light);
font-size: 0.9rem;
}
.album-meta span {
display: flex;
align-items: center;
gap: 6px;
}
.view-button {
display: block;
text-align: center;
padding: 14px;
background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
color: var(--white);
text-decoration: none;
border-radius: 10px;
font-weight: 600;
transition: all 0.3s ease;
border: none;
cursor: pointer;
font-size: 1rem;
}
.view-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}
.no-results {
text-align: center;
color: var(--text-light);
font-size: 1.2rem;
padding: 60px 40px;
background: var(--white);
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid var(--medium-gray);
}
.loading {
text-align: center;
color: var(--text-light);
font-size: 1.2rem;
padding: 60px 40px;
background: var(--white);
border-radius: var(--border-radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid var(--medium-gray);
}
@media (max-width: 768px) {
.albums-grid { grid-template-columns: 1fr; }
.search-box { max-width: 100%; }
.header h1 { font-size: 2.2rem; }
.container { padding: 20px 15px; }
.album-info { padding: 20px; }
}