161 lines
2.6 KiB
CSS
161 lines
2.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.container {
|
|
width: 90%;
|
|
max-width: 800px;
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
|
|
padding: 40px;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
header h1 {
|
|
color: #333;
|
|
font-size: 2.5em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
header p {
|
|
color: #666;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.search-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
#searchInput {
|
|
width: 100%;
|
|
min-height: 120px;
|
|
padding: 15px;
|
|
font-size: 16px;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 10px;
|
|
resize: vertical;
|
|
font-family: inherit;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
#searchInput:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
#searchBtn {
|
|
width: 100%;
|
|
padding: 15px;
|
|
margin-top: 15px;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 10px;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
#searchBtn:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.examples {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.examples h3 {
|
|
color: #555;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.example-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.chip {
|
|
background: #f0f0f0;
|
|
padding: 8px 16px;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.chip:hover {
|
|
background: #667eea;
|
|
color: white;
|
|
}
|
|
|
|
.result-section {
|
|
background: #f8f9fa;
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.result-section h2 {
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.result-item {
|
|
background: white;
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
margin-bottom: 15px;
|
|
border-left: 4px solid #667eea;
|
|
}
|
|
|
|
.result-item strong {
|
|
color: #667eea;
|
|
display: inline-block;
|
|
width: 100px;
|
|
}
|
|
|
|
.result-item .code-badge {
|
|
background: #f0f0f0;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
font-family: monospace;
|
|
font-size: 0.9em;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 5px solid #f3f3f3;
|
|
border-top: 5px solid #667eea;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
} |