body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}
.search-container {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* 允许在小屏时自动换行 */
    gap: 15px;
    max-width: 90vw; /* 避免超出屏幕 */
}

.search-container input {
    flex: 1 1 30%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f1f1f1;
    min-width: 50px;
    max-width: 300px;
}

.search-container input:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.search-container button {
    flex: 0 0 auto;
    padding: 12px 20px;
    border: none;
    background-color: #1d1d1d;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 100px;
    white-space: nowrap;
}


.search-container button:hover {
    background-color: #252525;
    transform: scale(1.05);
}

.search-container button:active {
    transform: scale(1);
}



.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
    width: 250px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    cursor: pointer;
}

.card h3 {
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
}

.type {
    font-size: 0.9em;
    color: #777;
    margin: 5px 0;
}

.description {
    font-size: 0.9em;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 3.8em; /* 精准匹配三行 */
    margin-bottom: 10px;
    cursor: pointer;
}


.description.expanded {
    -webkit-line-clamp: unset;
    height: auto;
}

.copy-btn {
    background-color: #ffffff;
    color: rgb(41, 110, 228);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    color: rgb(45, 122, 216);
}

.copy-btn:focus {
    outline: none;
}
