/* Reset default styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    padding: 20px;
}

/* Header styles */
header {
    background-color: #333;
    color: white;
    padding: 1em;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

form {
    margin-top: 1em;
}

form input[type="text"] {
    padding: 0.5em;
    width: 50%;
    font-size: 1em;
}

/* Navigation styles */
nav {
    background-color: #ddd;
    padding: 1em;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 10px;
}

/* Site list styles */
#site-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 20px;
}

.site-item {
    width: calc(33.33% - 20px);
    margin: 10px;
    padding: 10px;
    background-color: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
   
}

.site-item:hover,
.site-item:focus {
    background-color: #f2f2f2;
    transform: translateY(-5px);
}

.site-item img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.site-item h3 {
    margin: 0;
    font-size: 1.1em;
}

.site-item p {
    padding: 0 8px;
    margin-left: 5px;
    background-color: #f2f3f5;
    color: #878A95;
    font-size: 13px;

}
.site-item a {
   color: #272e3b;
   text-decoration: none; /* 去除下划线 */
   display: flex;
   align-items: center;
}

/* Category button styles */
.category-btn {
    padding: 0.5em 1em;
    font-size: 1em;
    background-color: #999;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
}

.category-btn:hover {
    background-color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .site-item {
        width: 100%;
    }
}
