.hero { padding: 50px 0; margin-bottom: 30px; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); position: relative; overflow: hidden; }
.hero h1 { font-size: 28px; font-weight: 600; margin-bottom: 15px; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.hero p { font-size: 16px; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.search-box { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }
.search-box input { width: 100%; padding: 15px 50px 15px 20px; font-size: 16px; border: none; border-radius: 50px; outline: none; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
.search-box button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: none; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50%; cursor: pointer; font-size: 18px; }
.home-search-tags { max-width: 700px; margin: 15px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.home-search-tag { padding: 6px 16px; background: #f0f0f0; color: #666666; border-radius: 4px; text-decoration: none; font-size: 14px; transition: all 0.3s ease; }
.home-search-tag:hover { background: #333333; color: #ffffff; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.material-card { background: #ffffff; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.material-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.material-card-image { position: relative; padding-top: 75%; overflow: hidden; background: #bdbdbd; }
.material-card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.material-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.3s ease; }
.material-card:hover .material-card-overlay { opacity: 1; }
.material-card-info { padding: 15px; }
.material-card-title { font-size: 14px; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-card-category { font-size: 12px; color: #0066FF; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #999999; margin-bottom: 10px; }
.tag { padding: 3px 8px; background: #f0f0f0; color: #666666; border-radius: 3px; font-size: 12px; text-decoration: none; }
.tag:hover { background: #0066FF; color: #ffffff; }
.empty-state { text-align: center; padding: 80px 0; }
.empty-state-icon { font-size: 64px; margin-bottom: 20px; }
.empty-state-text { font-size: 18px; color: #999999; }
@media (max-width: 768px) { .materials-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .material-card-info { padding: 10px; } .material-card-title { font-size: 12px; } }