Spaces:
Sleeping
Sleeping
:root { | |
--primary: #4a6bdf; | |
--primary-dark: #3a56b2; | |
--secondary: #f8f9fa; | |
--text: #333; | |
--text-light: #555; | |
--border: #e0e0e0; | |
--card-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
--transition: all 0.3s ease; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
} | |
body { | |
background-color: #f5f7fa; | |
color: var(--text); | |
line-height: 1.6; | |
} | |
.container { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 20px; | |
} | |
/* Component 1: Search Section */ | |
.search-section { | |
background: white; | |
border-radius: 10px; | |
padding: 30px; | |
margin-bottom: 30px; | |
box-shadow: var(--card-shadow); | |
text-align: center; | |
transition: var(--transition); | |
} | |
.search-section:hover { | |
box-shadow: 0 10px 20px rgba(0,0,0,0.15); | |
} | |
.search-section h1 { | |
font-size: 2.5rem; | |
margin-bottom: 10px; | |
color: var(--primary); | |
} | |
.search-section p { | |
font-size: 1.1rem; | |
color: var(--text-light); | |
margin-bottom: 25px; | |
} | |
.search-box { | |
display: flex; | |
max-width: 600px; | |
margin: 0 auto; | |
} | |
.search-box input { | |
flex: 1; | |
padding: 15px 20px; | |
border: 1px solid var(--border); | |
border-radius: 50px 0 0 50px; | |
font-size: 1rem; | |
outline: none; | |
transition: var(--transition); | |
} | |
.search-box input:focus { | |
border-color: var(--primary); | |
} | |
.search-box button { | |
padding: 0 25px; | |
background-color: var(--primary); | |
color: white; | |
border: none; | |
border-radius: 0 50px 50px 0; | |
cursor: pointer; | |
font-size: 1rem; | |
transition: var(--transition); | |
} | |
.search-box button:hover { | |
background-color: var(--primary-dark); | |
} | |
/* Component 2: Model Grid */ | |
.model-grid-section { | |
background: white; | |
border-radius: 10px; | |
padding: 30px; | |
margin-bottom: 30px; | |
box-shadow: var(--card-shadow); | |
} | |
.section-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 25px; | |
} | |
.section-header h2 { | |
font-size: 1.8rem; | |
color: var(--primary); | |
} | |
.model-grid { | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
gap: 20px; | |
margin-bottom: 30px; | |
} | |
.model-card { | |
background: white; | |
border: 1px solid var(--border); | |
border-radius: 8px; | |
padding: 20px; | |
transition: var(--transition); | |
cursor: pointer; | |
position: relative; | |
overflow: hidden; | |
} | |
.model-card:hover { | |
transform: translateY(-5px); | |
box-shadow: var(--card-shadow); | |
border-color: var(--primary); | |
} | |
.model-card h3 { | |
font-size: 0.9rem; | |
margin-bottom: 8px; | |
color: var(--text); | |
font-weight: 500; | |
} | |
.model-card .subtitle { | |
color: var(--text); | |
font-size: 0.9rem; | |
margin-bottom: 12px; | |
font-weight: 500; | |
} | |
.model-card p { | |
color: var(--text); | |
font-size: 0.9rem; | |
margin-bottom: 5px; | |
} | |
.model-card .meta { | |
display: flex; | |
justify-content: space-between; | |
margin-top: 15px; | |
font-size: 0.85rem; | |
color: var(--text-light); | |
border-top: 1px solid var(--border); | |
padding-top: 12px; | |
} | |
.pagination { | |
display: flex; | |
justify-content: center; | |
gap: 10px; | |
margin-top: 20px; | |
} | |
.pagination button { | |
padding: 8px 16px; | |
background-color: var(--primary); | |
color: white; | |
border: none; | |
border-radius: 5px; | |
cursor: pointer; | |
transition: var(--transition); | |
} | |
.pagination button:disabled { | |
background-color: #ccc; | |
cursor: not-allowed; | |
} | |
.pagination button:hover:not(:disabled) { | |
background-color: var(--primary-dark); | |
} | |
/* Component 3: Configuration Details */ | |
.config-section { | |
background: white; | |
border-radius: 10px; | |
padding: 30px; | |
margin-bottom: 30px; | |
box-shadow: var(--card-shadow); | |
display: none; | |
animation: fadeIn 0.5s ease; | |
} | |
@keyframes fadeIn { | |
from { opacity: 0; transform: translateY(20px); } | |
to { opacity: 1; transform: translateY(0); } | |
} | |
.config-section.active { | |
display: block; | |
} | |
.config-header { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
margin-bottom: 20px; | |
} | |
.config-header h3 { | |
font-size: 1.5rem; | |
color: var(--primary); | |
} | |
.config-list { | |
display: grid; | |
grid-template-columns: repeat(3, 1fr); | |
gap: 20px; | |
padding: 20px; | |
} | |
.config-card { | |
background: white; | |
border: 1px solid var(--border); | |
border-radius: 8px; | |
padding: 20px; | |
transition: var(--transition); | |
box-shadow: 0 2px 4px rgba(0,0,0,0.05); | |
} | |
.config-card:hover { | |
transform: translateY(-2px); | |
box-shadow: 0 4px 8px rgba(0,0,0,0.1); | |
} | |
.config-content { | |
display: flex; | |
flex-direction: column; | |
gap: 12px; | |
} | |
.config-card h4 { | |
font-size: 1.1rem; | |
margin-bottom: 10px; | |
color: var(--primary-dark); | |
} | |
.detail-item { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 8px 0; | |
border-bottom: 1px solid var(--border); | |
} | |
.detail-item:last-child { | |
border-bottom: none; | |
} | |
.detail-item strong { | |
color: var(--text-light); | |
font-size: 0.9rem; | |
} | |
.detail-item span { | |
color: var(--text); | |
font-weight: 500; | |
} | |
/* Empty State */ | |
.empty-state { | |
text-align: center; | |
padding: 40px 20px; | |
color: var(--text-light); | |
} | |
.empty-state i { | |
font-size: 3rem; | |
margin-bottom: 20px; | |
color: var(--border); | |
} | |
/* Responsive */ | |
@media (max-width: 1200px) { | |
.config-list { | |
grid-template-columns: repeat(2, 1fr); | |
} | |
} | |
@media (max-width: 768px) { | |
.model-grid { | |
grid-template-columns: 1fr; | |
} | |
.search-section h1 { | |
font-size: 2rem; | |
} | |
.section-header { | |
flex-direction: column; | |
align-items: flex-start; | |
gap: 15px; | |
} | |
.config-list { | |
grid-template-columns: 1fr; | |
} | |
} | |
/* Loading spinner */ | |
.spinner { | |
display: none; | |
width: 40px; | |
height: 40px; | |
margin: 20px auto; | |
border: 4px solid rgba(0, 0, 0, 0.1); | |
border-radius: 50%; | |
border-top: 4px solid var(--primary); | |
animation: spin 1s linear infinite; | |
} | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} |