body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f0f2f5;
}

.search-box {
    text-align: center;
    margin: 30px 0;
}

#searchInput {
    width: 80%;
    padding: 12px;
    border: 2px solid #4CAF50;
    border-radius: 24px;
    font-size: 16px;
}

.category {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category h2 {
    color: #333;
    border-left: 4px solid #4CAF50;
    padding-left: 10px;
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.link-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s;
}

.link-item:hover {
    transform: translateY(-3px);
    background: #e9ecef;
}

.link-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.link-item img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.add-link-form {
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

.short-url-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.short-url-result p {
    margin: 0 0 10px 0;
    color: #666;
}

.short-url-result input {
    width: calc(100% - 80px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

.short-url-result button {
    padding: 8px 15px;
    background-color: #007bff;
}

.short-url-result button:hover {
    background-color: #0056b3;
}

.error-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

@media (max-width: 795px) {
    body {
        padding: 10px;
    }

    .category {
        background: white;
        border-radius: 8px;
        padding: 10px;
        margin: 10px 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .search-box {
        margin: 15px 0;
    }
        .links {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));  /* 手机端宽度改为80px */
    }
} 